ASDM2MSFiller.h

Classes

timeMgr -- (full description)
ddMgr -- (full description)
ASDM2MSFiller -- (full description)

class timeMgr

Interface

Public Members
timeMgr()
timeMgr(int i, double t)
void setIndex(int i)
void setStartTime(double t)
int getIndex()
double getStartTime()

Description

Class timeMgr is a utility to help for the management of time in tables with TIME and INTERVAL columns

Member Description

timeMgr()

timeMgr(int i, double t)

void setIndex(int i)

void setStartTime(double t)

int getIndex()

double getStartTime()


class ddMgr

Interface

ddMgr()
int setNumCorr(int i, int numChan)
int setNumChan(int i, int numCorr)
int getNumCorr(int i)
int getNumChan(int i)
int setDD(int i, int polId, int swId)
int getPolId(int i)
int getSwId(int i)

Description

Class ddMgr is a utility to help for the management of DataDescription, SpectralWindow and Polarization ids. Here we provide enough space to store 100 values for each quantity; this is very likeky far beyond the actual needs.

Member Description

ddMgr()

int setNumCorr(int i, int numChan)

int setNumChan(int i, int numCorr)

int getNumCorr(int i)

int getNumChan(int i)

int setDD(int i, int polId, int swId)

int getPolId(int i)

int getSwId(int i)


class ASDM2MSFiller

Interface

Private Members
int createMS(const char* msName, Bool complexData)
const char** getPolCombinations(int numCorr)
Public Members
ASDM2MSFiller (const char* name_, double creation_time_, Bool withRadioMeters, Bool complexData)
~ASDM2MSFiller()
int addAntenna( const char *name_, const char *station_, double lx_, double ly_, double lz_, double offset_x_, double offset_y_, double offset_z_, float dish_diam_)
void addData(double time_, double interval_, double exposure_, double time_centroid_, int nb_antenna_feed_, int antenna_id_[], int feed_id_[], int data_desc_id_, int field_id_, double uvw_[], float vis_r_[], float vis_i_[], float sigma_[], float weight_[], const char flag_[])
void addData (bool complexData, double time_, vector<int> &antennaId1_, vector<int> &antennaId2_, vector<int> &feed1_, vector<int> &feed2_, vector<int> &dataDescId_, int processorId_, int fieldId_, double interval_, vector<double> &exposure_, vector<double> &timeCentroid_, int scanNumber_, int arrayId_, int observationId_, vector<int> &stateId_, vector <double*> &uvw_, vector<vector<int> > &dataShape_, vector<float *> &data_, vector<unsigned int> &flag_)
void addRCData(double time_, double interval_, double exposure_, double time_centroid_, int nb_antenna_feed_, int antenna_id_[], int feed_id_[], int data_desc_id_, int field_id_, double uvw_[], float rvis_r_[], float rvis_i_[], float cvis_r_[], float cvis_i_[], float sigma_[], float weight_[], const char flag_[])
int addDataDescription(int spectral_window_id_, int polarizarion_id_)
int addUniqueDataDescription(int spectral_window_id_, int polarizarion_id_)
int exists(char *path)
String msPath()
void addFeed(int antenna_id_, int feed_id_, int spectral_window_id_, double time_, double interval_, int num_receptors_, int beam_id_, double beam_offset_[], const char *pol_type_, double polarization_responseR_[], double polarization_responseI_[], double position_[3], double receptor_angle_[])
void addField( const char *name_, const char *code_, double time_, double delay_dir_[2], double phase_dir_[2], double reference_dir_[2], int source_id_)
void addFlagCmd(double time_, double interval_, const char *type_, const char *reason_, int level_, int severity_, int applied_, const char *command_)
void addHistory( double time_, int observation_id_, const char *message_, const char *priority_, const char *origin_, int object_id_, const char *application_, const char *cli_command_, const char *app_parms_ )
void addObservation(const char *telescopeName_, double startTime_, double endTime_, const char *observer_, const char **log_, const char *schedule_type_, const char **schedule_, const char *project_, double release_date_)
void addPointing(int antenna_id_, double time_, double interval_, const char *name_, double direction_[2], double target_[2], double pointing_offset_[2], double encoder_[2], int tracking_)
int addPolarization(int num_corr_, int corr_type_[], int corr_product_[])
int addUniquePolarization(int num_corr_, int corr_type_[], int corr_product_[])
void addProcessor(const char *type_, const char*sub_type_, int type_id_, int mode_id_)
void addSource(int source_id_, double time_, double interval_, int spectral_window_id_, int num_lines_, const char *name_, int calibration_group_, const char *code_, double direction_[2], double position_[2], double proper_motion_[2], const char *transition_[], double rest_frequency_[], double sysvel_[])
int addSpectralWindow(int num_chan_, const char *name_, double ref_frequency_, double chan_freq_[], double chan_width_[], int meas_freq_ref_, double effective_bw_[], double resolution_[], double total_bandwidth_, int net_sideband_, int if_conv_chain_, int freq_group_, const char *freq_group_name_, int num_assoc_, int assoc_spectral_window_[], char** assoc_nature_)
int addUniqueState(Bool sig_, Bool ref_, double cal_, double load_, int sub_scan_, const char* obs_mode_, Bool flag_row_)
void addState(Bool sig_, Bool ref_, double cal_, double load_, int sub_scan_, const char *obs_mode_)
void addWeather(int antennaId_, double time_, double interval_, float h2o_, float rms_h2o_, float rms_h2o_flag_, float pressure_, float rel_humidity_, float temperature_, float dew_point_, float wind_direction_, float wind_speed_)
void end(double time_)

Description

Class ASDM2MSFiller

Member Description

int createMS(const char* msName, Bool complexData)

const char** getPolCombinations(int numCorr)

ASDM2MSFiller (const char* name_, double creation_time_, Bool withRadioMeters, Bool complexData)

Construct the MS with a given name, a given number of antennas a given number of channels and a given number of polarizations.

~ASDM2MSFiller()

Destructor

int addAntenna( const char *name_, const char *station_, double lx_, double ly_, double lz_, double offset_x_, double offset_y_, double offset_z_, float dish_diam_)

void addData(double time_, double interval_, double exposure_, double time_centroid_, int nb_antenna_feed_, int antenna_id_[], int feed_id_[], int data_desc_id_, int field_id_, double uvw_[], float vis_r_[], float vis_i_[], float sigma_[], float weight_[], const char flag_[])

void addData (bool complexData, double time_, vector<int> &antennaId1_, vector<int> &antennaId2_, vector<int> &feed1_, vector<int> &feed2_, vector<int> &dataDescId_, int processorId_, int fieldId_, double interval_, vector<double> &exposure_, vector<double> &timeCentroid_, int scanNumber_, int arrayId_, int observationId_, vector<int> &stateId_, vector <double*> &uvw_, vector<vector<int> > &dataShape_, vector<float *> &data_, vector<unsigned int> &flag_)

void addRCData(double time_, double interval_, double exposure_, double time_centroid_, int nb_antenna_feed_, int antenna_id_[], int feed_id_[], int data_desc_id_, int field_id_, double uvw_[], float rvis_r_[], float rvis_i_[], float cvis_r_[], float cvis_i_[], float sigma_[], float weight_[], const char flag_[])

int addDataDescription(int spectral_window_id_, int polarizarion_id_)

int addUniqueDataDescription(int spectral_window_id_, int polarizarion_id_)

int exists(char *path)

String msPath()

void addFeed(int antenna_id_, int feed_id_, int spectral_window_id_, double time_, double interval_, int num_receptors_, int beam_id_, double beam_offset_[], const char *pol_type_, double polarization_responseR_[], double polarization_responseI_[], double position_[3], double receptor_angle_[])

void addField( const char *name_, const char *code_, double time_, double delay_dir_[2], double phase_dir_[2], double reference_dir_[2], int source_id_)

void addFlagCmd(double time_, double interval_, const char *type_, const char *reason_, int level_, int severity_, int applied_, const char *command_)

void addHistory( double time_, int observation_id_, const char *message_, const char *priority_, const char *origin_, int object_id_, const char *application_, const char *cli_command_, const char *app_parms_ )

void addObservation(const char *telescopeName_, double startTime_, double endTime_, const char *observer_, const char **log_, const char *schedule_type_, const char **schedule_, const char *project_, double release_date_)

void addPointing(int antenna_id_, double time_, double interval_, const char *name_, double direction_[2], double target_[2], double pointing_offset_[2], double encoder_[2], int tracking_)

int addPolarization(int num_corr_, int corr_type_[], int corr_product_[])

int addUniquePolarization(int num_corr_, int corr_type_[], int corr_product_[])

void addProcessor(const char *type_, const char*sub_type_, int type_id_, int mode_id_)

void addSource(int source_id_, double time_, double interval_, int spectral_window_id_, int num_lines_, const char *name_, int calibration_group_, const char *code_, double direction_[2], double position_[2], double proper_motion_[2], const char *transition_[], double rest_frequency_[], double sysvel_[])

int addSpectralWindow(int num_chan_, const char *name_, double ref_frequency_, double chan_freq_[], double chan_width_[], int meas_freq_ref_, double effective_bw_[], double resolution_[], double total_bandwidth_, int net_sideband_, int if_conv_chain_, int freq_group_, const char *freq_group_name_, int num_assoc_, int assoc_spectral_window_[], char** assoc_nature_)

int addUniqueState(Bool sig_, Bool ref_, double cal_, double load_, int sub_scan_, const char* obs_mode_, Bool flag_row_)

void addState(Bool sig_, Bool ref_, double cal_, double load_, int sub_scan_, const char *obs_mode_)

void addWeather(int antennaId_, double time_, double interval_, float h2o_, float rms_h2o_, float rms_h2o_flag_, float pressure_, float rel_humidity_, float temperature_, float dew_point_, float wind_direction_, float wind_speed_)

void end(double time_)