29 #ifndef MS_FITSIDITOMS_H 30 #define MS_FITSIDITOMS_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/fits/FITS/hdu.h> 34 #include <casacore/tables/Tables/Table.h> 35 #include <casacore/tables/Tables/TableDesc.h> 36 #include <casacore/tables/Tables/TableRecord.h> 37 #include <casacore/tables/Tables/TableColumn.h> 38 #include <casacore/casa/Containers/SimOrdMap.h> 39 #include <casacore/casa/Arrays/Vector.h> 40 #include <casacore/casa/Arrays/Matrix.h> 41 #include <casacore/casa/Containers/Block.h> 42 #include <casacore/casa/Logging/LogIO.h> 43 #include <casacore/measures/Measures/MFrequency.h> 44 #include <casacore/ms/MeasurementSets/MeasurementSet.h> 45 #include <casacore/casa/BasicSL/String.h>
FITSIDItoMS converts a FITS-IDI file to a CASA Measurement Set.
TableInfo itsTableInfo
Table info.
void getAxisInfo()
Read the axis info, throws an exception if required axes are missing.
const Table & nextRow()
Get a Table with a single row, the next row of the FITS table.
void describeColumns()
Convert FITS field descriptions to TableColumn descriptions.
Bool readFitsFile(const String &msFile)
Read all the data from the FITS file and create the MeasurementSet.
Main interface class to a read/write table.
Matrix< Float > weightsFromKW_p
Table itsCurRowTab
The scratch table containing the current row.
Bool fillSysCalTable()
fill the optional SysCal table with the content of SYSTEM_TEMPERATURE
void fillSpectralWindowTable()
fill the Spectral Window table with the content of FREQUENCY
void fillMSMainTable(const String &MSFileName, Int &nField, Int &nSpW)
Fill the main table from the Primary group data.
Vector< Double > refVal_p
void convertKeywords()
Build part of the keywords of the itsCurRowTab.
TableRecord & getKeywords()
Return the Table keywords (this is the same TableRecord used in any Table objects returned by this cl...
void updateTables(const String &tabName)
update the Polarization table
void fillFeedTable()
fill the Feed table with minimal info needed for synthesis processing
uInt itsNrMSKs
Buffer for storing the MSK's, MS-specific FITS keywords.
Bool handlePhaseCal()
store the information from the PHASE-CAL table in a calibration table
void fillFieldTable()
fill the Field table void fillFieldTable(Int nField);
static SimpleOrderedMap< Int, Int > antIdFromNo
ostream-like interface to creating log messages.
FITSIDItoMS1(FitsInput &in, const Int &obsType=0, const Bool &initFirstMain=True)
The only constructor is from a FitsInput.
Bool uv_data_hasWeights_p
TableRecord itsKwSet
Table keyword set.
const TableDesc & getDescriptor()
Get an appropriate TableDesc (this is the same TableDesc used to construct any Table objects returned...
MFrequency::Types freqsys_p
Table oldfullTable(const String &tabName)
Get the full table, using the supplied arguments to construct the table.
Vector< Double > refPix_p
Vector< Int > itsNelem
The number of elements for each column of the BinaryTableExtension.
TableDesc itsTableDesc
Table descriptor for construction.
void fillRow()
Fill in each row as needed.
Bool isfirstMain()
is this the first UV_DATA extension
bool Bool
Define the standard types used by Casacore.
Float itsVersion
The MS version.
void setupMeasurementSet(const String &MSFileName, Bool useTSM=True, Bool mainTbl=False, Bool addCorrMod=False, Bool addSyscal=False)
Set up the MeasurementSet, including StorageManagers and fixed columns.
Table type, subtype and further info.
const Table & thisRow()
Get a Table with a single row, the current row of the FITS table.
void fixEpochReferences()
fix up the EPOCH MEASURE_REFERENCE keywords
void convertMSKeywords()
Convert the MS-specific keywords in the FITS binary table.
A hierarchical collection of named fields of various types.
A Table intended to hold astronomical data (a set of Measurements).
Float msVersion() const
Get the version of the archived MS.
String msFile_p
FitsInput .
void fillAntennaTable()
Read a binary table extension of type ANTENNA and create an antenna table void fillAntennaTable(Binar...
Bool fillFlagCmdTable()
fill the optional FlagCmd table with the content of FLAG
Bool handleGainCurve()
store the information from the GAIN_CURVE table in a calibration table
Vector< Double > receptorAngle_p
Bool fillCorrelatorModelTable()
fill the optional Correlator Model table with the content of INTERFEROMETER_MODEL ...
A class to provide easy read-write access to MeasurementSet columns.
String: the storage and methods of handling collections of characters.
Vector< Bool > itsIsArray
For each column: is it an array?
Define the structure of a Casacore table.
Matrix< Int > corrProduct_p
Bool handleModelComps()
store the information from the MODEL_COMPS table
Double startTime_p
Int nIF_p;.
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
void fillObsTables()
Fill the Observation and ObsLog tables.
Bool fillWeatherTable()
fill the optional Weather table with the content of WEATHER
this file contains all the compiler specific defines
Vector< String > coordType_p