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/Arrays/Vector.h>
39 #include <casacore/casa/Arrays/Matrix.h>
40 #include <casacore/casa/Containers/Block.h>
41 #include <casacore/casa/Logging/LogIO.h>
42 #include <casacore/measures/Measures/MFrequency.h>
43 #include <casacore/ms/MeasurementSets/MeasurementSet.h>
44 #include <casacore/casa/BasicSL/String.h>
Bool uv_data_hasWeights_p
void convertKeywords()
Build part of the keywords of the itsCurRowTab.
Float msVersion() const
Get the version of the archived MS.
Bool readFitsFile(const String &msFile)
Read all the data from the FITS file and create the MeasurementSet.
TableRecord & getKeywords()
Return the Table keywords (this is the same TableRecord used in any Table objects returned by this cl...
Bool fillSysCalTable()
fill the optional SysCal table with the content of SYSTEM_TEMPERATURE
Vector< Double > receptorAngle_p
TableDesc itsTableDesc
Table descriptor for construction.
void updateTables(const String &tabName)
update the Polarization table
Bool handlePhaseCal()
store the information from the PHASE-CAL table in a calibration table
Vector< Int > itsNelem
The number of elements for each column of the BinaryTableExtension.
Vector< Double > refPix_p
Bool weather_hasElectron_p
void fillSpectralWindowTable()
fill the Spectral Window table with the content of FREQUENCY
FITSIDItoMS1(FitsInput &in, const String &correlat, const Int &obsType=0, const Bool &initFirstMain=True)
The only constructor is from a FitsInput.
static Bool firstGainCurve
void setupMeasurementSet(const String &MSFileName, Bool useTSM=True, Bool mainTbl=False, Bool addCorrMod=False, Bool addSyscal=False, Bool addWeather=False, Bool addGainCurve=False)
Set up the MeasurementSet, including StorageManagers and fixed columns.
void fillMSMainTable(const String &MSFileName, Int &nField, Int &nSpW)
Fill the main table from the Primary group data.
uInt itsNrMSKs
Buffer for storing the MSK's, MS-specific FITS keywords.
Table oldfullTable(const String &tabName)
Get the full table, using the supplied arguments to construct the table.
TableRecord itsKwSet
Table keyword set.
const TableDesc & getDescriptor()
Get an appropriate TableDesc (this is the same TableDesc used to construct any Table objects returned...
void fillObsTables()
Fill the Observation and ObsLog tables.
static std::map< Int, Int > digiLevels
TableInfo itsTableInfo
Table info.
Vector< Double > refVal_p
void getAxisInfo()
Read the axis info, throws an exception if required axes are missing.
Bool fillFlagCmdTable()
fill the optional FlagCmd table with the content of FLAG
void fixEpochReferences()
fix up the EPOCH MEASURE_REFERENCE keywords
Vector< String > coordType_p
static Vector< Double > effChBw
Matrix< Int > corrProduct_p
Bool handleGainCurve()
store the information from the GAIN_CURVE table in a calibration table
Vector< Bool > itsIsArray
For each column: is it an array?
Bool fillWeatherTable()
fill the optional Weather table with the content of WEATHER
const Table & thisRow()
Get a Table with a single row, the current row of the FITS table.
void describeColumns()
Convert FITS field descriptions to TableColumn descriptions.
Table itsCurRowTab
The scratch table containing the current row.
void fillFieldTable()
fill the Field table void fillFieldTable(Int nField);
MFrequency::Types freqsys_p
Block< Int > corrSwapIndex_p
Bool handleModelComps()
store the information from the MODEL_COMPS table
void fillAntennaTable()
Read a binary table extension of type ANTENNA and create an antenna table void fillAntennaTable(Binar...
Bool fillCorrelatorModelTable()
fill the optional Correlator Model table with the content of INTERFEROMETER_MODEL
Bool isfirstMain()
is this the first UV_DATA extension
void convertMSKeywords()
Convert the MS-specific keywords in the FITS binary table.
void fillRow()
Fill in each row as needed.
const Table & nextRow()
Get a Table with a single row, the next row of the FITS table.
Float itsVersion
The MS version.
void fillFeedTable()
fill the Feed table with minimal info needed for synthesis processing
static std::map< Int, Int > antIdFromNo
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.