# -*- coding: utf-8 -*-
"""Simple visibility simulator in python."""

from __future__ import print_function, absolute_import
from pyuvwsim import (load_station_coords, convert_enu_to_ecef,
                      evaluate_baseline_uvw)
from os.path import join
import math
import numpy
from psutil import virtual_memory
from pybda.corrupting_gains import eval_complex_gains
import time
from oskar._bda_utils import apply_gains, check_ref_count


def convert_ra_dec_to_relative_directions(ra, dec, ra0, dec0):
    d_ra = ra - ra0
    cos_d_ra = numpy.cos(d_ra)
    sin_d_ra = numpy.sin(d_ra)
    cos_dec = numpy.cos(dec)