casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casa::Importmiriad Class Reference

a helper class More...

#include <Importmiriad.h>

Public Member Functions

 Importmiriad (casacore::String &infile, casacore::Int debug=0, casacore::Bool Qtsys=false, casacore::Bool Qarrays=false, casacore::Bool Qlinecal=false)
 This is an implementation helper class used to store 'local' data during the filling process. More...
 
 ~Importmiriad ()
 Standard destructor. More...
 
void checkInput (casacore::Block< casacore::Int > &spw, casacore::Block< casacore::Int > &wide)
 Check some of the contents of the data and header read. More...
 
casacore::Bool Debug (int level)
 Debug output level. More...
 
void setupMeasurementSet (const casacore::String &MSFileName, casacore::Bool useTSM=true)
 Set up the casacore::MeasurementSet, including StorageManagers and fixed columns. More...
 
void fillMSMainTable ()
 Fill the main table by reading in all the visibilities. More...
 
void fillAntennaTable ()
 Make an Antenna casacore::Table (can be called incrementally now) More...
 
void fillSyscalTable ()
 Make a Syscal casacore::Table (can be called incrementally) More...
 
void fillSpectralWindowTable (casacore::String vel)
 fill Spectralwindow table More...
 
void fillFieldTable ()
 fill Field table More...
 
void fillSourceTable ()
 fill Source table More...
 
void fillFeedTable ()
 fill the Feed table with minimal info needed for synthesis processing More...
 
void fillObsTables ()
 Fill the Observation and History (formerly ObsLog) tables. More...
 
void fixEpochReferences ()
 fix up the EPOCH MEASURE_REFERENCE keywords using the value found in the (last) AN table - check if miriad really needs it More...
 
void Tracking (int record)
 
void check_window ()
 
casacore::Bool compareWindows (WINDOW &w1, WINDOW &w2)
 
void Error (char *msg)
 
void Warning (char *msg)
 
void show ()
 
void close ()
 

Private Attributes

casacore::String infile_p
 
casacore::Int uv_handle_p
 
casacore::MeasurementSet ms_p
 
casacore::MSColumnsmsc_p
 
casacore::Int debug_p
 
casacore::String array_p
 
casacore::String project_p
 
casacore::String object_p
 
casacore::String telescope_p
 
casacore::String observer_p
 
casacore::String version_p
 
casacore::String timsys_p
 
casacore::Vector< casacore::IntnPixel_p
 
casacore::Vector< casacore::IntcorrType_p
 
casacore::Vector< casacore::IntcorrIndex_p
 
casacore::Matrix< casacore::IntcorrProduct_p
 
casacore::Double epoch_p
 
casacore::MDirection::Types epochRef_p
 
casacore::Int nArray_p
 
casacore::Block< casacore::IntnAnt_p
 
casacore::Block
< casacore::Vector
< casacore::Double > > 
receptorAngle_p
 
casacore::Vector
< casacore::Double
arrayXYZ_p
 
casacore::Vector
< casacore::Double
ras_p
 
casacore::Vector
< casacore::Double
decs_p
 
casacore::Vector
< casacore::String
source_p
 
casacore::Vector
< casacore::String
purpose_p
 
casacore::LogIO os_p
 
casacore::Vector< casacore::Boolkeep_p
 
double preamble [5]
 the following variables are for miriad, hence not casacore::Double/casacore::Int/Float thus the code may have to be fixed on machines where these do not agree... More...
 
int ifield
 
int nfield
 
int npoint
 
float dra [MAXFIELD]
 
float ddec [MAXFIELD]
 
double ra [MAXFIELD]
 
double dec [MAXFIELD]
 
int field [MAXFIELD]
 
int fcount [MAXFIELD]
 
float dra_p
 
float ddec_p
 
int pol_p [4]
 
casacore::Int nants_p
 char message[MAXMSG]; More...
 
casacore::Int nants_offset_p
 
casacore::Int nchan_p
 
casacore::Int nwide_p
 
casacore::Int npol_p
 
casacore::Double antpos [3 *MAXANT]
 
casacore::Float phasem1 [MAXANT]
 
casacore::Double ra_p
 
casacore::Double dec_p
 
casacore::Float inttime_p
 
casacore::Float jyperk_p
 
casacore::Double freq_p
 
casacore::Int mount_p
 
casacore::Double time_p
 
casacore::Double timeFirst_p
 
casacore::Int freqSet_p
 MIRIAD spectral window definition. More...
 
casacore::Int nFreqSet_p
 
casacore::Int ddid_p
 
WINDOW win [MAXFSET]
 
casacore::Bool Qtsys_p
 
casacore::Bool Qarrays_p
 
casacore::Bool Qlinecal_p
 
float data [2 *MAXCHAN]
 casacore::Data buffers.... More...
 
float wdata [2 *MAXCHAN]
 
int flags [MAXCHAN]
 
int wflags [MAXCHAN]
 
float systemp [MAXANT *MAXWIDE]
 
int zero_tsys
 
int nvis
 Counters. More...
 

Detailed Description

a helper class

Definition at line 167 of file Importmiriad.h.

Constructor & Destructor Documentation

casa::Importmiriad::Importmiriad ( casacore::String infile,
casacore::Int  debug = 0,
casacore::Bool  Qtsys = false,
casacore::Bool  Qarrays = false,
casacore::Bool  Qlinecal = false 
)

This is an implementation helper class used to store 'local' data during the filling process.

Create from a miriad dataset (a directory)

casa::Importmiriad::~Importmiriad ( )

Standard destructor.

Member Function Documentation

void casa::Importmiriad::check_window ( )
void casa::Importmiriad::checkInput ( casacore::Block< casacore::Int > &  spw,
casacore::Block< casacore::Int > &  wide 
)

Check some of the contents of the data and header read.

void casa::Importmiriad::close ( )
casacore::Bool casa::Importmiriad::compareWindows ( WINDOW w1,
WINDOW w2 
)
casacore::Bool casa::Importmiriad::Debug ( int  level)

Debug output level.

void casa::Importmiriad::Error ( char *  msg)
void casa::Importmiriad::fillAntennaTable ( )

Make an Antenna casacore::Table (can be called incrementally now)

void casa::Importmiriad::fillFeedTable ( )

fill the Feed table with minimal info needed for synthesis processing

void casa::Importmiriad::fillFieldTable ( )

fill Field table

void casa::Importmiriad::fillMSMainTable ( )

Fill the main table by reading in all the visibilities.

void casa::Importmiriad::fillObsTables ( )

Fill the Observation and History (formerly ObsLog) tables.

void casa::Importmiriad::fillSourceTable ( )

fill Source table

void casa::Importmiriad::fillSpectralWindowTable ( casacore::String  vel)

fill Spectralwindow table

void casa::Importmiriad::fillSyscalTable ( )

Make a Syscal casacore::Table (can be called incrementally)

void casa::Importmiriad::fixEpochReferences ( )

fix up the EPOCH MEASURE_REFERENCE keywords using the value found in the (last) AN table - check if miriad really needs it

void casa::Importmiriad::setupMeasurementSet ( const casacore::String MSFileName,
casacore::Bool  useTSM = true 
)

Set up the casacore::MeasurementSet, including StorageManagers and fixed columns.

If useTSM is true, the Tiled Storage Manager will be used to store DATA, FLAG and WEIGHT_SPECTRUM

void casa::Importmiriad::show ( )
void casa::Importmiriad::Tracking ( int  record)
void casa::Importmiriad::Warning ( char *  msg)

Member Data Documentation

casacore::Double casa::Importmiriad::antpos[3 *MAXANT]
private

Definition at line 274 of file Importmiriad.h.

casacore::String casa::Importmiriad::array_p
private

Definition at line 234 of file Importmiriad.h.

casacore::Vector<casacore::Double> casa::Importmiriad::arrayXYZ_p
private

Definition at line 248 of file Importmiriad.h.

casacore::Vector<casacore::Int> casa::Importmiriad::corrIndex_p
private

Definition at line 241 of file Importmiriad.h.

casacore::Matrix<casacore::Int> casa::Importmiriad::corrProduct_p
private

Definition at line 242 of file Importmiriad.h.

casacore::Vector<casacore::Int> casa::Importmiriad::corrType_p
private

Definition at line 241 of file Importmiriad.h.

float casa::Importmiriad::data[2 *MAXCHAN]
private

casacore::Data buffers....

again in MIRIAD format

Definition at line 293 of file Importmiriad.h.

float casa::Importmiriad::ddec[MAXFIELD]
private

Definition at line 263 of file Importmiriad.h.

float casa::Importmiriad::ddec_p
private

Definition at line 267 of file Importmiriad.h.

casacore::Int casa::Importmiriad::ddid_p
private

Definition at line 284 of file Importmiriad.h.

casacore::Int casa::Importmiriad::debug_p
private

Definition at line 233 of file Importmiriad.h.

double casa::Importmiriad::dec[MAXFIELD]
private

Definition at line 264 of file Importmiriad.h.

casacore::Double casa::Importmiriad::dec_p
private

Definition at line 276 of file Importmiriad.h.

casacore::Vector<casacore::Double> casa::Importmiriad::decs_p
private

Definition at line 249 of file Importmiriad.h.

float casa::Importmiriad::dra[MAXFIELD]
private

Definition at line 263 of file Importmiriad.h.

float casa::Importmiriad::dra_p
private

Definition at line 267 of file Importmiriad.h.

casacore::Double casa::Importmiriad::epoch_p
private

Definition at line 243 of file Importmiriad.h.

casacore::MDirection::Types casa::Importmiriad::epochRef_p
private

Definition at line 244 of file Importmiriad.h.

int casa::Importmiriad::fcount[MAXFIELD]
private

Definition at line 266 of file Importmiriad.h.

int casa::Importmiriad::field[MAXFIELD]
private

Definition at line 265 of file Importmiriad.h.

int casa::Importmiriad::flags[MAXCHAN]
private

Definition at line 294 of file Importmiriad.h.

casacore::Double casa::Importmiriad::freq_p
private

Definition at line 278 of file Importmiriad.h.

casacore::Int casa::Importmiriad::freqSet_p
private

MIRIAD spectral window definition.

Definition at line 284 of file Importmiriad.h.

int casa::Importmiriad::ifield
private

Definition at line 262 of file Importmiriad.h.

casacore::String casa::Importmiriad::infile_p
private

Definition at line 229 of file Importmiriad.h.

casacore::Float casa::Importmiriad::inttime_p
private

Definition at line 277 of file Importmiriad.h.

casacore::Float casa::Importmiriad::jyperk_p
private

Definition at line 277 of file Importmiriad.h.

casacore::Vector<casacore::Bool> casa::Importmiriad::keep_p
private

Definition at line 253 of file Importmiriad.h.

casacore::Int casa::Importmiriad::mount_p
private

Definition at line 279 of file Importmiriad.h.

casacore::MeasurementSet casa::Importmiriad::ms_p
private

Definition at line 231 of file Importmiriad.h.

casacore::MSColumns* casa::Importmiriad::msc_p
private

Definition at line 232 of file Importmiriad.h.

casacore::Block<casacore::Int> casa::Importmiriad::nAnt_p
private

Definition at line 246 of file Importmiriad.h.

casacore::Int casa::Importmiriad::nants_offset_p
private

Definition at line 273 of file Importmiriad.h.

casacore::Int casa::Importmiriad::nants_p
private

char message[MAXMSG];

The following items more or less follow the uv variables in a dataset

Definition at line 273 of file Importmiriad.h.

casacore::Int casa::Importmiriad::nArray_p
private

Definition at line 245 of file Importmiriad.h.

casacore::Int casa::Importmiriad::nchan_p
private

Definition at line 273 of file Importmiriad.h.

int casa::Importmiriad::nfield
private

Definition at line 262 of file Importmiriad.h.

casacore::Int casa::Importmiriad::nFreqSet_p
private

Definition at line 284 of file Importmiriad.h.

casacore::Vector<casacore::Int> casa::Importmiriad::nPixel_p
private

Definition at line 241 of file Importmiriad.h.

int casa::Importmiriad::npoint
private

Definition at line 262 of file Importmiriad.h.

casacore::Int casa::Importmiriad::npol_p
private

Definition at line 273 of file Importmiriad.h.

int casa::Importmiriad::nvis
private

Counters.

Definition at line 299 of file Importmiriad.h.

casacore::Int casa::Importmiriad::nwide_p
private

Definition at line 273 of file Importmiriad.h.

casacore::String casa::Importmiriad::object_p
private

Definition at line 234 of file Importmiriad.h.

casacore::String casa::Importmiriad::observer_p
private

Definition at line 234 of file Importmiriad.h.

casacore::LogIO casa::Importmiriad::os_p
private

Definition at line 252 of file Importmiriad.h.

casacore::Float casa::Importmiriad::phasem1[MAXANT]
private

Definition at line 275 of file Importmiriad.h.

int casa::Importmiriad::pol_p[4]
private

Definition at line 268 of file Importmiriad.h.

double casa::Importmiriad::preamble[5]
private

the following variables are for miriad, hence not casacore::Double/casacore::Int/Float thus the code may have to be fixed on machines where these do not agree...

may need special access code to get those into CASA types on 64 bit machines??

Definition at line 261 of file Importmiriad.h.

casacore::String casa::Importmiriad::project_p
private

Definition at line 234 of file Importmiriad.h.

casacore::Vector<casacore::String> casa::Importmiriad::purpose_p
private

Definition at line 250 of file Importmiriad.h.

casacore::Bool casa::Importmiriad::Qarrays_p
private

Definition at line 288 of file Importmiriad.h.

casacore::Bool casa::Importmiriad::Qlinecal_p
private

Definition at line 289 of file Importmiriad.h.

casacore::Bool casa::Importmiriad::Qtsys_p
private

Definition at line 287 of file Importmiriad.h.

double casa::Importmiriad::ra[MAXFIELD]
private

Definition at line 264 of file Importmiriad.h.

casacore::Double casa::Importmiriad::ra_p
private

Definition at line 276 of file Importmiriad.h.

casacore::Vector<casacore::Double> casa::Importmiriad::ras_p
private

Definition at line 249 of file Importmiriad.h.

casacore::Block<casacore::Vector<casacore::Double> > casa::Importmiriad::receptorAngle_p
private

Definition at line 247 of file Importmiriad.h.

casacore::Vector<casacore::String> casa::Importmiriad::source_p
private

Definition at line 250 of file Importmiriad.h.

float casa::Importmiriad::systemp[MAXANT *MAXWIDE]
private

Definition at line 295 of file Importmiriad.h.

casacore::String casa::Importmiriad::telescope_p
private

Definition at line 234 of file Importmiriad.h.

casacore::Double casa::Importmiriad::time_p
private

Definition at line 280 of file Importmiriad.h.

casacore::Double casa::Importmiriad::timeFirst_p
private

Definition at line 281 of file Importmiriad.h.

casacore::String casa::Importmiriad::timsys_p
private

Definition at line 234 of file Importmiriad.h.

casacore::Int casa::Importmiriad::uv_handle_p
private

Definition at line 230 of file Importmiriad.h.

casacore::String casa::Importmiriad::version_p
private

Definition at line 234 of file Importmiriad.h.

float casa::Importmiriad::wdata[2 *MAXCHAN]
private

Definition at line 293 of file Importmiriad.h.

int casa::Importmiriad::wflags[MAXCHAN]
private

Definition at line 294 of file Importmiriad.h.

WINDOW casa::Importmiriad::win[MAXFSET]
private

Definition at line 285 of file Importmiriad.h.

int casa::Importmiriad::zero_tsys
private

Definition at line 296 of file Importmiriad.h.


The documentation for this class was generated from the following file: