asdm::CalAtmosphereTable Class Reference

#include <CalAtmosphereTable.h>

Inherits asdm::Representable.

List of all members.


Detailed Description

The CalAtmosphereTable class is an Alma table.

Generated from model's revision "1.41", branch "HEAD"

Attributes of CalAtmosphere
Name Type Comment

Key

calDataId Tag  

calReductionId Tag  

antennaName string  

Value
(Mandarory)

numReceptor int  

numFreq int  

endValidTime ArrayTime  

startValidTime ArrayTime  

polarizationTypes vector<PolarizationType > numReceptor

frequencyRange vector<Frequency > 2

frequencySpectrum vector<Frequency > numFreq

syscalType SyscalMethod  

tSysSpectrum vector<vector<Temperature > > numFreq, numReceptor

tRecSpectrum vector<vector<Temperature > > numFreq, numReceptor

tAtmSpectrum vector<vector<Temperature > > numFreq, numReceptor

tauSpectrum vector<vector<float > > numFreq, numReceptor

sbGainSpectrum vector<vector<float > > numFreq, numReceptor

forwardEffSpectrum vector<vector<float > > numFreq, numReceptor

groundPressure Pressure  

groundTemperature Temperature  

groundRelHumidity Humidity  

subType string  

receiverBand ReceiverBand  

Value
(Optional)

tSys vector<Temperature > numReceptor

tRec vector<Temperature > numReceptor

tAtm vector<Temperature > numReceptor

sbGain vector<float > numReceptor

water vector<Length > numReceptor

forwardEfficiency vector<float > numReceptor

tau vector<float > numReceptor


Public Member Functions

ASDMgetContainer () const
unsigned int size ()
string getName () const
Entity getEntity () const
void setEntity (Entity e)
CalAtmosphereRownewRow ()
CalAtmosphereRownewRowEmpty ()
CalAtmosphereRownewRow (Tag calDataId, Tag calReductionId, string antennaName, int numReceptor, int numFreq, ArrayTime endValidTime, ArrayTime startValidTime, vector< PolarizationType > polarizationTypes, vector< Frequency > frequencyRange, vector< Frequency > frequencySpectrum, SyscalMethod syscalType, vector< vector< Temperature > > tSysSpectrum, vector< vector< Temperature > > tRecSpectrum, vector< vector< Temperature > > tAtmSpectrum, vector< vector< float > > tauSpectrum, vector< vector< float > > sbGainSpectrum, vector< vector< float > > forwardEffSpectrum, Pressure groundPressure, Temperature groundTemperature, Humidity groundRelHumidity, string subType, ReceiverBand receiverBand)
CalAtmosphereRownewRowFull (Tag calDataId, Tag calReductionId, string antennaName, int numReceptor, int numFreq, ArrayTime endValidTime, ArrayTime startValidTime, vector< PolarizationType > polarizationTypes, vector< Frequency > frequencyRange, vector< Frequency > frequencySpectrum, SyscalMethod syscalType, vector< vector< Temperature > > tSysSpectrum, vector< vector< Temperature > > tRecSpectrum, vector< vector< Temperature > > tAtmSpectrum, vector< vector< float > > tauSpectrum, vector< vector< float > > sbGainSpectrum, vector< vector< float > > forwardEffSpectrum, Pressure groundPressure, Temperature groundTemperature, Humidity groundRelHumidity, string subType, ReceiverBand receiverBand)
CalAtmosphereRownewRow (CalAtmosphereRow *row)
CalAtmosphereRownewRowCopy (CalAtmosphereRow *row)
CalAtmosphereRowadd (CalAtmosphereRow *x)
vector< CalAtmosphereRow * > get ()
CalAtmosphereRowCalAtmosphereTable::getRowByKey (Tag calDataId, Tag calReductionId, string antennaName)
CalAtmosphereRowlookup (Tag calDataId, Tag calReductionId, string antennaName, int numReceptor, int numFreq, ArrayTime endValidTime, ArrayTime startValidTime, vector< PolarizationType > polarizationTypes, vector< Frequency > frequencyRange, vector< Frequency > frequencySpectrum, SyscalMethod syscalType, vector< vector< Temperature > > tSysSpectrum, vector< vector< Temperature > > tRecSpectrum, vector< vector< Temperature > > tAtmSpectrum, vector< vector< float > > tauSpectrum, vector< vector< float > > sbGainSpectrum, vector< vector< float > > forwardEffSpectrum, Pressure groundPressure, Temperature groundTemperature, Humidity groundRelHumidity, string subType, ReceiverBand receiverBand)
CalAtmosphereTableIDL * toIDL ()
void fromIDL (CalAtmosphereTableIDL x) throw (DuplicateKey,ConversionException)
char * toFITS () const throw (ConversionException)
void fromFITS (char *fits) throw (ConversionException)
string toVOTable () const throw (ConversionException)
void fromVOTable (string vo) throw (ConversionException)
string toXML () throw (ConversionException)
void fromXML (string xmlDoc) throw (ConversionException)
string toMIME ()
void setFromMIME (const string &mimeMsg)
void toFile (string directory)
void setFromFile (const string &directory)

Static Public Member Functions

static vector< string > getKeyName ()

Friends

class asdm::ASDM


Member Function Documentation

static vector<string> asdm::CalAtmosphereTable::getKeyName (  )  [static]

Return the list of field names that make up key key as an array of strings.

Returns:
a vector of string.

ASDM& asdm::CalAtmosphereTable::getContainer (  )  const

Return the container to which this table belongs.

Returns:
the ASDM containing this table.

unsigned int asdm::CalAtmosphereTable::size (  )  [virtual]

Return the number of rows in the table.

Returns:
the number of rows in an unsigned int.

Implements asdm::Representable.

string asdm::CalAtmosphereTable::getName (  )  const [virtual]

Return the name of this table.

Returns:
the name of this table in a string.

Implements asdm::Representable.

Entity asdm::CalAtmosphereTable::getEntity (  )  const [virtual]

Return this table's Entity.

Implements asdm::Representable.

void asdm::CalAtmosphereTable::setEntity ( Entity  e  )  [virtual]

Set this table's Entity.

Parameters:
e An entity.

Implements asdm::Representable.

CalAtmosphereRow* asdm::CalAtmosphereTable::newRow (  ) 

Create a new row with default values.

Returns:
a pointer on a CalAtmosphereRow

CalAtmosphereRow* asdm::CalAtmosphereTable::newRowEmpty (  ) 

Has the same definition than the newRow method with the same signature. Provided to facilitate the call from Python, otherwise the newRow method will be preferred.

CalAtmosphereRow* asdm::CalAtmosphereTable::newRow ( Tag  calDataId,
Tag  calReductionId,
string  antennaName,
int  numReceptor,
int  numFreq,
ArrayTime  endValidTime,
ArrayTime  startValidTime,
vector< PolarizationType >  polarizationTypes,
vector< Frequency frequencyRange,
vector< Frequency frequencySpectrum,
SyscalMethod  syscalType,
vector< vector< Temperature > >  tSysSpectrum,
vector< vector< Temperature > >  tRecSpectrum,
vector< vector< Temperature > >  tAtmSpectrum,
vector< vector< float > >  tauSpectrum,
vector< vector< float > >  sbGainSpectrum,
vector< vector< float > >  forwardEffSpectrum,
Pressure  groundPressure,
Temperature  groundTemperature,
Humidity  groundRelHumidity,
string  subType,
ReceiverBand  receiverBand 
)

Create a new row initialized to the specified values.

Returns:
a pointer on the created and initialized row.
Parameters:
calDataId. 
calReductionId. 
antennaName. 
numReceptor. 
numFreq. 
endValidTime. 
startValidTime. 
polarizationTypes. 
frequencyRange. 
frequencySpectrum. 
syscalType. 
tSysSpectrum. 
tRecSpectrum. 
tAtmSpectrum. 
tauSpectrum. 
sbGainSpectrum. 
forwardEffSpectrum. 
groundPressure. 
groundTemperature. 
groundRelHumidity. 
subType. 
receiverBand. 

CalAtmosphereRow* asdm::CalAtmosphereTable::newRowFull ( Tag  calDataId,
Tag  calReductionId,
string  antennaName,
int  numReceptor,
int  numFreq,
ArrayTime  endValidTime,
ArrayTime  startValidTime,
vector< PolarizationType >  polarizationTypes,
vector< Frequency frequencyRange,
vector< Frequency frequencySpectrum,
SyscalMethod  syscalType,
vector< vector< Temperature > >  tSysSpectrum,
vector< vector< Temperature > >  tRecSpectrum,
vector< vector< Temperature > >  tAtmSpectrum,
vector< vector< float > >  tauSpectrum,
vector< vector< float > >  sbGainSpectrum,
vector< vector< float > >  forwardEffSpectrum,
Pressure  groundPressure,
Temperature  groundTemperature,
Humidity  groundRelHumidity,
string  subType,
ReceiverBand  receiverBand 
)

Has the same definition than the newRow method with the same signature. Provided to facilitate the call from Python, otherwise the newRow method will be preferred.

CalAtmosphereRow* asdm::CalAtmosphereTable::newRow ( CalAtmosphereRow row  ) 

Create a new row using a copy constructor mechanism.

The method creates a new CalAtmosphereRow owned by this. Each attribute of the created row is a (deep) copy of the corresponding attribute of row. The method does not add the created row to this, its simply parents it to this, a call to the add method has to be done in order to get the row added (very likely after having modified some of its attributes). If row is null then the method returns a new CalAtmosphereRow with default values for its attributes.

Parameters:
row the row which is to be copied.

CalAtmosphereRow* asdm::CalAtmosphereTable::newRowCopy ( CalAtmosphereRow row  ) 

Has the same definition than the newRow method with the same signature. Provided to facilitate the call from Python, otherwise the newRow method will be preferred.

CalAtmosphereRow* asdm::CalAtmosphereTable::add ( CalAtmosphereRow x  ) 

Add a row.

Parameters:
x a pointer to the CalAtmosphereRow to be added.
Returns:
a pointer to a CalAtmosphereRow. If the table contains a CalAtmosphereRow whose attributes (key and mandatory values) are equal to x ones then returns a pointer on that CalAtmosphereRow, otherwise returns x.
Exceptions:
DuplicateKey { thrown when the table contains a CalAtmosphereRow with a key equal to the x one but having and a value section different from x one }

vector<CalAtmosphereRow *> asdm::CalAtmosphereTable::get (  ) 

Get all rows.

Returns:
Alls rows as a vector of pointers of CalAtmosphereRow. The elements of this vector are stored in the order in which they have been added to the CalAtmosphereTable.

CalAtmosphereRow* asdm::CalAtmosphereTable::CalAtmosphereTable::getRowByKey ( Tag  calDataId,
Tag  calReductionId,
string  antennaName 
)

Returns a CalAtmosphereRow* given a key.

Returns:
a pointer to the row having the key whose values are passed as parameters, or 0 if no row exists for that key.
Parameters:
calDataId. 
calReductionId. 
antennaName. 

CalAtmosphereRow* asdm::CalAtmosphereTable::lookup ( Tag  calDataId,
Tag  calReductionId,
string  antennaName,
int  numReceptor,
int  numFreq,
ArrayTime  endValidTime,
ArrayTime  startValidTime,
vector< PolarizationType >  polarizationTypes,
vector< Frequency frequencyRange,
vector< Frequency frequencySpectrum,
SyscalMethod  syscalType,
vector< vector< Temperature > >  tSysSpectrum,
vector< vector< Temperature > >  tRecSpectrum,
vector< vector< Temperature > >  tAtmSpectrum,
vector< vector< float > >  tauSpectrum,
vector< vector< float > >  sbGainSpectrum,
vector< vector< float > >  forwardEffSpectrum,
Pressure  groundPressure,
Temperature  groundTemperature,
Humidity  groundRelHumidity,
string  subType,
ReceiverBand  receiverBand 
)

Look up the table for a row whose all attributes are equal to the corresponding parameters of the method.

Returns:
a pointer on this row if any, null otherwise.
Parameters:
calDataId. 
calReductionId. 
antennaName. 
numReceptor. 
numFreq. 
endValidTime. 
startValidTime. 
polarizationTypes. 
frequencyRange. 
frequencySpectrum. 
syscalType. 
tSysSpectrum. 
tRecSpectrum. 
tAtmSpectrum. 
tauSpectrum. 
sbGainSpectrum. 
forwardEffSpectrum. 
groundPressure. 
groundTemperature. 
groundRelHumidity. 
subType. 
receiverBand. 

CalAtmosphereTableIDL* asdm::CalAtmosphereTable::toIDL (  ) 

Convert this table into a CalAtmosphereTableIDL CORBA structure.

Returns:
a pointer to a CalAtmosphereTableIDL

void asdm::CalAtmosphereTable::fromIDL ( CalAtmosphereTableIDL  x  )  throw (DuplicateKey,ConversionException)

Populate this table from the content of a CalAtmosphereTableIDL Corba structure.

Exceptions:
DuplicateKey Thrown if the method tries to add a row having a key that is already in the table.
ConversionException 

char* asdm::CalAtmosphereTable::toFITS (  )  const throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

void asdm::CalAtmosphereTable::fromFITS ( char *  fits  )  throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

string asdm::CalAtmosphereTable::toVOTable (  )  const throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

void asdm::CalAtmosphereTable::fromVOTable ( string  vo  )  throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

string asdm::CalAtmosphereTable::toXML (  )  throw (ConversionException) [virtual]

Translate this table to an XML representation conform to the schema defined for CalAtmosphere (CalAtmosphereTable.xsd).

Returns:
a string containing the XML representation.

Implements asdm::Representable.

void asdm::CalAtmosphereTable::fromXML ( string  xmlDoc  )  throw (ConversionException) [virtual]

Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a CalAtmosphere (CalAtmosphereTable.xsd).

Implements asdm::Representable.

string asdm::CalAtmosphereTable::toMIME (  ) 

Serialize this into a stream of bytes and encapsulates that stream into a MIME message.

Returns:
a string containing the MIME message.

void asdm::CalAtmosphereTable::setFromMIME ( const string &  mimeMsg  ) 

Extracts the binary part of a MIME message and deserialize its content to fill this with the result of the deserialization.

Parameters:
mimeMsg the string containing the MIME message.
Exceptions:
ConversionException 

void asdm::CalAtmosphereTable::toFile ( string  directory  ) 

Stores a representation (binary or XML) of this table into a file.

Depending on the boolean value of its private field fileAsBin a binary serialization of this (fileAsBin==true) will be saved in a file "CalAtmosphere.bin" or an XML representation (fileAsBin==false) will be saved in a file "CalAtmosphere.xml". The file is always written in a directory whose name is passed as a parameter.

Parameters:
directory The name of directory where the file containing the table's representation will be saved.

void asdm::CalAtmosphereTable::setFromFile ( const string &  directory  ) 

Reads and parses a file containing a representation of a CalAtmosphereTable as those produced by the toFile method. This table is populated with the result of the parsing.

Parameters:
directory The name of the directory containing the file te be read and parsed.
Exceptions:
ConversionException If any error occurs while reading the files in the directory or parsing them.


The documentation for this class was generated from the following file:
Generated on Thu Nov 29 16:46:48 2007 for ASDM C++ Implementation by  doxygen 1.5.1