processing_components/simulation/simulation_helpers.py
def plot_azel(bvis_list, plot_file='azel.png', **kwargs):
    """ Standard plot of az el coverage
    
    :param bvis_list:
    :param plot_file:
    :param kwargs:
    :return:
    """
    plt.clf()
    r2d = 180.0 / numpy.pi
    for ibvis, bvis in enumerate(bvis_list):
        ha = numpy.pi * bvis.time / 43200.0
        dec = bvis.phasecentre.dec.rad
        latitude = bvis.configuration.location.lat.rad
        az, el = hadec_to_azel(ha, dec, latitude)
        if ibvis == 0:
            plt.plot(bvis.time, r2d * az, '.', color='r', label='Azimuth (deg)')
            plt.plot(bvis.time, r2d * el, '.', color='b', label='Elevation (deg)')
        else:
            plt.plot(bvis.time, r2d * az, '.', color='r')
            plt.plot(bvis.time, r2d * el, '.', color='b')
    plt.xlabel('HA (s)')
    plt.ylabel('Angle')
    plt.legend()
    plt.title('Azimuth and elevation vs hour angle')
    plt.savefig(plot_file)
    plt.show(block=False)
 Standard plot of az el coverage
    
    :param bvis_list:
    :param plot_file:
    :param kwargs:
    :return:
    
Standard plot of az el coverage
Standard plot of az el coverage
def plot_azel(bvis_list, plot_file='azel.png', **kwargs):
    plt.clf()
    r2d = 180.0 / numpy.pi
    for ibvis, bvis in enumerate(bvis_list):
        ha = numpy.pi * bvis.time / 43200.0
        dec = bvis.phasecentre.dec.rad
        latitude = bvis.configuration.location.lat.rad
        az, el = hadec_to_azel(ha, dec, latitude)
        if ibvis == 0:
            plt.plot(bvis.time, r2d * az, '.', color='r', label='Azimuth (deg)')
            plt.plot(bvis.time, r2d * el, '.', color='b', label='Elevation (deg)')
        else:
            plt.plot(bvis.time, r2d * az, '.', color='r')
            plt.plot(bvis.time, r2d * el, '.', color='b')
    plt.xlabel('HA (s)')
    plt.ylabel('Angle')
    plt.legend()
    plt.title('Azimuth and elevation vs hour angle')
    plt.savefig(plot_file)
    plt.show(block=False)
def plot_azel ( bvis_list , plot_file = 'azel.png' , ** kwargs ) : plt . clf ( ) r2d = 180.0 / numpy . pi for ibvis , bvis in enumerate ( bvis_list ) : ha = numpy . pi * bvis . time / 43200.0 dec = bvis . phasecentre . dec . rad latitude = bvis . configuration . location . lat . rad az , el = hadec_to_azel ( ha , dec , latitude ) if ibvis == 0 : plt . plot ( bvis . time , r2d * az , '.' , color = 'r' , label = 'Azimuth (deg)' ) plt . plot ( bvis . time , r2d * el , '.' , color = 'b' , label = 'Elevation (deg)' ) else : plt . plot ( bvis . time , r2d * az , '.' , color = 'r' ) plt . plot ( bvis . time , r2d * el , '.' , color = 'b' ) plt . xlabel ( 'HA (s)' ) plt . ylabel ( 'Angle' ) plt . legend ( ) plt . title ( 'Azimuth and elevation vs hour angle' ) plt . savefig ( plot_file ) plt . show ( block = False )
Standard plot of az el coverage
Standard plot of az el coverage
""" Standard plot of az el coverage
    
    :param bvis_list:
    :param plot_file:
    :param kwargs:
    :return:
    """
None
bvis_list
None
plot_file
None
kwargs
None