28 #ifndef ATNF_ATCAFILLER_H
29 #define ATNF_ATCAFILLER_H
void fillFeedTable()
Fill the feed table (with dummy values)
casacore::ScalarColumn< casacore::Bool > colWeatherSeeMonFlag
MIRIAD dataset casacore::MeasurementSet filler.
casacore::ArrayColumn< casacore::Int > colScanInfoCoarse
ATCAFiller & deselectAntenna(casacore::Vector< casacore::Int > antennas)
Deselect antennas.
casacore::Float vis[2 *MaxNPol *MaxNChan]
rpfits data
void listScan(casacore::Double &mjd, casacore::Int scan, casacore::Double ut)
casacore::Block< casacore::Int > rowCache_p
casacore::Int checkSpW(casacore::Int ifNumber, casacore::Bool log=true)
ATCAFiller & edge(casacore::Float edge)
Set percentage of channels to flag at band edges.
LatticeExprNode log(const LatticeExprNode &expr)
casacore::ArrayColumn< casacore::Float > colGTP
ATCAFiller & bandwidth1(casacore::Int bandwidth1)
Select on bandwidth of IF 1.
casacore::Vector< casacore::String > fieldSelection_p
Selection parameters.
casacore::MSColumns * msc_p
casacore::ArrayColumn< casacore::Float > colSamplerStatsPos
casacore::Float lastWeatherUT_p
casacore::Bool fill()
Fill the measurement set.
casacore::ScalarColumn< casacore::Int > colScanInfoScanId
casacore::Float weight[MaxNPol *MaxNChan]
casacore::ScalarColumn< casacore::String > colScanInfoPointInfo
Main interface class to a read/write table.
casacore::Bool listHeader_p
casacore::MeasurementSet atms_p
Data.
ATCAFiller & tsysSmooth(casacore::Int window=9)
casacore::Smooth Tsys values with running median and recalibrate the data.
casacore::Matrix< casacore::Float > pointingCorr_p
void rfiFlag(casacore::Matrix< casacore::Bool > &flags)
casacore::String atcaPosToStation(casacore::Vector< casacore::Double > &xyz)
ATCAFiller & fields(const casacore::Vector< casacore::String > &fieldList)
Select a number of fields by name.
casacore::Bool gotAN_p
Bools.
casacore::Vector< casacore::String > rpfitsFiles_p
Filenames.
casacore::Bool skipData_p
casacore::Bool selected(casacore::Int ifNum)
casacore::Bool checkCABB(const casacore::String &rpfitsname)
casacore::Double firstTime_p
casacore::Int scanNo_p
#scanheaders stored, index into casacore::MS SpW and Field Tables for current data ...
casacore::Double prevTime_p
static casacore::MeasurementSet makeTable(const casacore::String &tableName, casacore::Bool compress, casacore::Bool cabb)
make the ATCA specific MeasurementSet
casacore::Vector< casacore::Int > flagCount_p
ostream-like interface to creating log messages.
TableExprNode mjd(const TableExprNode &node)
ATCAFiller & xyPhaseSmooth(casacore::Int window=9, casacore::Double tolerance=10.0)
casacore::Smooth xy-phases with running median and flag data with discrepant xy-phase.
casacore::Int nAnt_p
The following should be constant throughout the rpfits file.
casacore::Vector< casacore::Int > spws_p
casacore::Bool samplerFlag(casacore::Int row, casacore::Double posNegTolerance=3.0, casacore::Double zeroTolerance=0.5)
Flag data if samplerstats are bad.
ATCAFiller()
Construct the ATCAFiller.
casacore::ScalarColumn< casacore::String > colScanInfoCoordType
casacore::TiledDataStManAccessor sigmaAccessor_p
casacore::Vector< casacore::Double > opacities(casacore::Vector< casacore::Double > fGHz, casacore::Float tempK, casacore::Float humi, casacore::Float press, casacore::Float height)
Calculate zenith opacities using the ASAP/Miriad model given surface weather conditions and observato...
casacore::Float shadow_p
Check for shadowing.
casacore::String sources_p
Track sources.
casacore::Bool autoFlag_p
Flagging.
static casacore::TableDesc atcaTableDesc(casacore::Bool compress)
return the ATCA required tabledesc, this is the standard MeasurementSet plus ATCA specific additions...
casacore::Double windowWidth_p
casacore::TiledDataStManAccessor flagAccessor_p
casacore::Bool noxycorr_p
casacore::ScalarColumn< casacore::Float > colWeatherSeeMonPhase
casacore::TiledDataStManAccessor dataAccessor_p
storage manager accessor
void list()
casacore::List the file on cout
casacore::String currentFile_p
static void makeSubTables(casacore::MS &ms, casacore::Table::TableOption option, casacore::Bool cabb)
make the subtables with ATCA specific additions
casacore::ScalarColumn< casacore::Bool > colScanInfoLineMode
casacore::ScalarColumn< casacore::Int > colScanInfoCacal
casacore::ScalarColumn< casacore::Float > colWeatherSeeMonRMS
casacore::Int lastSpWId_p
ATCAFiller & shadow(casacore::Float diam)
Set shadowing limit.
void storeHeader(Bool last=False)
When storing header items skip irrelevant items for the last (empty) scan, it is just there to captur...
casacore::Int prev_fieldId_p
casacore::ArrayColumn< casacore::Float > colSamplerStatsZero
ATCAFiller & numChan1(casacore::Int numchan1)
Select on number of channels of IF 1.
void fillMeasureReferences()
casacore::Bool open(const casacore::String &msName, const casacore::Vector< casacore::String > &rpfitsFiles, const casacore::Vector< casacore::String > &options, casacore::Int opcor=2)
Open the measurement set and one or more RPFits files.
casacore::Bool skipScan_p
ATCAFiller & scanRange(casacore::Int firstScan, casacore::Int lastScan=0)
Select a range of scans to read.
casacore::Int nRowCache_p
casacore::ArrayColumn< casacore::Float > colSamplerStatsNeg
casacore::Table msScanInfo_p
ATCAFiller & timeRange(casacore::Double firstTime, casacore::Double lastTime=0)
casacore::Time range selection.
bool Bool
Define the standard types used by Casacore.
casacore::Bool reweight_p
casacore::Bool firstHeader_p
casacore::Double lowFreq_p
casacore::Bool appendMode_p
casacore::ScalarColumn< casacore::Int > colScanInfoSpWId
casacore::ScalarColumn< casacore::Float > colXYAmplitude
casacore::ArrayColumn< casacore::Float > colScanInfoSubreflector
ATCAFiller & operator=(const ATCAFiller &)
casacore::Bool gotSysCalId_p
casacore::Vector< casacore::Int > antennas_p
Give access to some TiledDataStMan functions.
casacore::LogIO os_p
Logger.
casacore::ScalarColumn< casacore::String > colScanInfoCorrConfig
casacore::Double highFreq_p
A Table intended to hold astronomical data (a set of Measurements).
casacore::Vector< casacore::Int > baselines_p
void storeATCAHeader(Bool last=False)
casacore::Bool flagScanType_p
casacore::Bool storedHeader_p
casacore::Double lastTime_p
casacore::Int firstChan_p
ATCAFiller & frequencies(casacore::Vector< casacore::Double > freqs, casacore::Double windowWidth=1e6)
Select frequencies within windowWidth of specified ones.
casacore::ScalarColumn< casacore::Float > colTrackErrMax
casacore::Double mjd0_p
reference date
casacore::TiledDataStManAccessor corrDataAccessor_p
casacore::ArrayColumn< casacore::Float > colSDO
casacore::TiledDataStManAccessor flagCatAccessor_p
void init()
for constructors
casacore::ScalarColumn< casacore::Int > colSamplerBits
casacore::Bool fill1(const casacore::String &rpfitsname)
fill a single input file
casacore::uInt fileSize_p
A class to provide easy read-write access to MeasurementSet columns.
casacore::ScalarColumn< casacore::Int > colSysCalIdAnt2
casacore::Int firstScan_p
casacore::TiledDataStManAccessor imWtAccessor_p
casacore::Vector< casacore::Double > freqs_p
String: the storage and methods of handling collections of characters.
casacore::Int bandWidth1_p
void fillObservationTable()
casacore::Int birdChan(casacore::Double refFreq, casacore::Int refChan, casacore::Double chanSpac)
Define the structure of a Casacore table.
casacore::ScalarColumn< casacore::Float > colWeatherRainGauge
casacore::TiledDataStManAccessor modelDataAccessor_p
casacore::Bool newPointingCorr_p
casacore::ScalarColumn< casacore::String > colScanInfoScanType
ATCAFiller & freqRange(casacore::Double lowFreq, casacore::Double highFreq=0)
Select a range of frequencies, lowFreq=0 => everything below higFreq, highFreq=0 => everything above ...
casacore::ScalarColumn< casacore::Int > colScanInfoAntId
ATCA_SCAN_INFO columns & table.
ATCAFiller & freqSel(const casacore::Vector< casacore::Int > &spws)
Select the Freq (which one of the simult.
casacore::ScalarColumn< casacore::Int > colSysCalIdAnt1
Column objects to access Tables.
casacore::ArrayColumn< casacore::Int > colScanInfoFine
casacore::ArrayColumn< casacore::Int > colScanInfommAtt
ATCAFiller & chanRange(casacore::Int firstChan, casacore::Int lastChan, casacore::Int ChanInc=1)
Select range of channels, with optional increment.
casacore::Int nScan_p
Number of scans seen; #SpWs, #fields stored sofar.
casacore::Matrix< casacore::Int > corrIndex_p
Polarization order.
casacore::Vector< casacore::Int > sysCalId_p
variables to keep the state of the sysCal search & binning state
casacore::ArrayColumn< casacore::Float > colCalJy
casacore::ScalarColumn< casacore::Float > colTrackErrRMS
TableOption
Define the possible options how a table can be opened.