HOPS
HOPS class reference
|
Classes | |
class | Configuration |
class | DefaultChannelDefines |
class | ExperimentReportData |
class | SingleStationPCPhases |
Functions | |
def | channel_sort_key (ch_val_pair) |
def | compute_final_pcphases (apriori_pc_phases, generated_pc_phases) |
def | compute_vgos_network_reference_station_pc_phases (single_baseline_pp_collection_obj, network_reference_station, discard_tolerance=15.0, complete_discard_count=5) |
def | construct_control_file_lines (apriori_pc_phases, generated_pc_phases, frequency_group='X', mode='VGOS') |
def | generate_ffres2pcp_control_file (config_obj, output_control_filename) |
def | generate_pc_phases (config_obj, report_data_obj=None) |
def | generate_station_phase_corrections (SingleBaselinePolarizationProductCollection_list, target_station, network_reference_station, dtec_tolerance=1.0, network_reference_station_pol='X', discard_tolerance=15, nchannel_discard_threshold=5) |
def | get_apriori_pc_phases (ffres2pcp_config) |
def | select_collection_subset (SingleBaselinePolarizationProductCollection_list, target_station, network_reference_station, dtec_nom=0.1, max_number_to_select=0) |
def | sum_mean_pc_phases (pcp_obj_a, pcp_obj_b) |
Variables | |
ffres2pcp_logger = logging.getLogger(__name__) | |
module to determine the appropriate manual p-cal phases offsets for each station during an experiment w.r.t to a network reference station
def vpal.ffres2pcp_lib.channel_sort_key | ( | ch_val_pair | ) |
sort channel value pairs in channel order
def vpal.ffres2pcp_lib.compute_final_pcphases | ( | apriori_pc_phases, | |
generated_pc_phases | |||
) |
given both the a-priori and generated SingleStationPCPhases, sum and round their values to obtain the corrections necessary for the control file output
def vpal.ffres2pcp_lib.compute_vgos_network_reference_station_pc_phases | ( | single_baseline_pp_collection_obj, | |
network_reference_station, | |||
discard_tolerance = 15.0 , |
|||
complete_discard_count = 5 |
|||
) |
compute the (Y-pol) pc_phases corrections for the station being used as the network reference station
def vpal.ffres2pcp_lib.construct_control_file_lines | ( | apriori_pc_phases, | |
generated_pc_phases, | |||
frequency_group = 'X' , |
|||
mode = 'VGOS' |
|||
) |
given both the a-priori and generated SingleStationPCPhases, sum and round their values to obtain the corrections necessary for the control file output, then output formatted lines
def vpal.ffres2pcp_lib.generate_ffres2pcp_control_file | ( | config_obj, | |
output_control_filename | |||
) |
create the control file with the necessary pc_phases correction lines
def vpal.ffres2pcp_lib.generate_pc_phases | ( | config_obj, | |
report_data_obj = None |
|||
) |
main function for ffres2pcp to generate the pc_phase corrections for each station-pol (not including the apriori pc_phases) this function does: #(1) batch fourfits all of the available scans/baselines #(2) combines the generated fringe files into collections #(3) applies some selection critera to the collections to generate a list of scan collections for each station #(4) extracts the pc_phases for each individual station from the selected scans #(5) merges the reference station pc_phases (from all baselines/stations) #(6) applies sigma cut to phase correction data #(7) returns a dictionary of SingleStationPCPhases indexed by (station,pol) tuples
def vpal.ffres2pcp_lib.generate_station_phase_corrections | ( | SingleBaselinePolarizationProductCollection_list, | |
target_station, | |||
network_reference_station, | |||
dtec_tolerance = 1.0 , |
|||
network_reference_station_pol = 'X' , |
|||
discard_tolerance = 15 , |
|||
nchannel_discard_threshold = 5 |
|||
) |
function to generate pc_phases for station in an experiment from a list of selected scans (gathered into SingleScanBaselineCollection)
def vpal.ffres2pcp_lib.get_apriori_pc_phases | ( | ffres2pcp_config | ) |
parse the control file and get the (a-priori) pc_phases which are already present
def vpal.ffres2pcp_lib.select_collection_subset | ( | SingleBaselinePolarizationProductCollection_list, | |
target_station, | |||
network_reference_station, | |||
dtec_nom = 0.1 , |
|||
max_number_to_select = 0 |
|||
) |
this function selects single scan baseline pol-product collections for a particular target/reference station based on empirical method this assumes cuts in min_snr, dtec deviation, etc. have already been made
def vpal.ffres2pcp_lib.sum_mean_pc_phases | ( | pcp_obj_a, | |
pcp_obj_b | |||
) |
sums the mean phases of the two SingleStationPCPhases objects and returns a channel indexed dictionary of the summed values
vpal.ffres2pcp_lib.ffres2pcp_logger = logging.getLogger(__name__) |