casa
5.7.0-16
|
FiltrationTVI is an implementation of data filtering. More...
#include <FiltrationTVI.h>
Public Member Functions | |
virtual | ~FiltrationTVI () |
Destructor. More... | |
virtual casacore::String | ViiType () const |
Report the the ViImplementation type. More... | |
virtual void | origin () |
+==================================+ | | | Iteration Control and Monitoring | | | +==================================+ More... | |
virtual void | next () |
virtual void | originChunks (casacore::Bool forceRewind=false) |
Methods to control chunk iterator. More... | |
virtual void | nextChunk () |
virtual casacore::Int | nRows () const |
Return the number of rows in the current iteration FiltrationTVI may change the number of rows when given vb is partly filtrate. More... | |
virtual void | getRowIds (casacore::Vector< casacore::uInt > &rowids) const |
Return the row ids as from the original root table. More... | |
virtual void | antenna1 (casacore::Vector< casacore::Int > &ant1) const |
+=========================+ | | | Subchunk casacore::Data Accessors | | | +=========================+ More... | |
virtual void | antenna2 (casacore::Vector< casacore::Int > &ant2) const |
Return antenna2. More... | |
virtual void | exposure (casacore::Vector< double > &expo) const |
Return actual time interval. More... | |
virtual void | feed1 (casacore::Vector< casacore::Int > &fd1) const |
Return feed1. More... | |
virtual void | feed2 (casacore::Vector< casacore::Int > &fd2) const |
Return feed2. More... | |
virtual void | fieldIds (casacore::Vector< casacore::Int > &) const |
Return the current FieldId. More... | |
virtual void | arrayIds (casacore::Vector< casacore::Int > &) const |
Return the current ArrayId. More... | |
virtual void | flag (casacore::Cube< casacore::Bool > &flags) const |
Return flag for each polarization, channel and row. More... | |
virtual void | flag (casacore::Matrix< casacore::Bool > &flags) const |
Return flag for each channel & row. More... | |
virtual void | flagCategory (casacore::Array< casacore::Bool > &flagCategories) const |
Return flags for each polarization, channel, category, and row. More... | |
virtual void | flagRow (casacore::Vector< casacore::Bool > &rowflags) const |
Return row flag. More... | |
virtual void | observationId (casacore::Vector< casacore::Int > &obsids) const |
Return the OBSERVATION_IDs. More... | |
virtual void | processorId (casacore::Vector< casacore::Int > &procids) const |
Return the PROCESSOR_IDs. More... | |
virtual void | scan (casacore::Vector< casacore::Int > &scans) const |
Return scan number. More... | |
virtual void | stateId (casacore::Vector< casacore::Int > &stateids) const |
Return the STATE_IDs. More... | |
virtual void | jonesC (casacore::Vector< casacore::SquareMatrix< casacore::Complex, 2 > > &cjones) const |
Return feed configuration matrix for specified antenna. More... | |
virtual void | sigma (casacore::Matrix< casacore::Float > &sigmat) const |
Return sigma. More... | |
virtual void | spectralWindows (casacore::Vector< casacore::Int > &spws) const |
Return current SpectralWindow. More... | |
virtual void | time (casacore::Vector< double > &t) const |
Return MJD midpoint of interval. More... | |
virtual void | timeCentroid (casacore::Vector< double > &t) const |
Return MJD centroid of interval. More... | |
virtual void | timeInterval (casacore::Vector< double > &ti) const |
Return nominal time interval. More... | |
virtual void | uvw (casacore::Matrix< double > &uvwmat) const |
Return u,v and w (in meters) More... | |
virtual void | visibilityCorrected (casacore::Cube< casacore::Complex > &vis) const |
Return the visibilities as found in the casacore::MS, casacore::Cube (npol,nchan,nrow). More... | |
virtual void | visibilityModel (casacore::Cube< casacore::Complex > &vis) const |
virtual void | visibilityObserved (casacore::Cube< casacore::Complex > &vis) const |
virtual void | floatData (casacore::Cube< casacore::Float > &fcube) const |
Return FLOAT_DATA as a casacore::Cube (npol, nchan, nrow) if found in the MS. More... | |
virtual casacore::IPosition | visibilityShape () const |
Return the shape of the visibility Cube. More... | |
virtual void | weight (casacore::Matrix< casacore::Float > &wtmat) const |
Return weight. More... | |
virtual void | weightSpectrum (casacore::Cube< casacore::Float > &wtsp) const |
Return weightspectrum (a weight for each channel) More... | |
virtual void | sigmaSpectrum (casacore::Cube< casacore::Float > &wtsp) const |
Return sgimaspectrum (a sigma for each channel) More... | |
virtual void | dataDescriptionIds (casacore::Vector< casacore::Int > &) const |
+=========================+ | | | Chunk and casacore::MS Level casacore::Data | | | +=========================+ More... | |
Public Member Functions inherited from casa::vi::TransformingVi2 | |
virtual | ~TransformingVi2 () |
Destructor. More... | |
virtual casacore::Bool | more () const override |
virtual Subchunk | getSubchunkId () const override |
virtual casacore::Bool | moreChunks () const override |
virtual casacore::String | keyChange () const override |
Report Name of slowest column that changes at end of current iteration. More... | |
virtual casacore::Bool | isWritable () const override |
virtual double | getInterval () const override |
Return the time interval (in seconds) used for iteration. More... | |
virtual void | setInterval (double timeInterval) override |
virtual void | setFrequencySelections (const FrequencySelections &selection) override |
Select the channels to be returned. More... | |
virtual void | setRowBlocking (casacore::Int nRows) override |
Set the 'blocking' size for returning data. More... | |
virtual casacore::Bool | existsColumn (VisBufferComponent2 id) const override |
virtual const SortColumns & | getSortColumns () const override |
virtual casacore::Bool | isNewArrayId () const override |
virtual casacore::Bool | isNewFieldId () const override |
virtual casacore::Bool | isNewMs () const override |
virtual casacore::Bool | isNewSpectralWindow () const override |
virtual VisBuffer2 * | getVisBuffer () const override |
virtual void | corrType (casacore::Vector< casacore::Int > &corrTypes) const override |
Return the correlation type (returns casacore::Stokes enums) More... | |
virtual casacore::Int | dataDescriptionId () const override |
Return current DataDescription Id. More... | |
virtual casacore::String | fieldName () const override |
Return the current Field Name. More... | |
virtual casacore::Bool | flagCategoryExists () const override |
Determine whether FLAG_CATEGORY is valid. More... | |
virtual casacore::Int | polarizationId () const override |
Return current Polarization Id. More... | |
virtual casacore::String | sourceName () const override |
Return the current Source Name. More... | |
virtual casacore::Int | polFrame () const override |
Return frame for polarization (returns PolFrame enum) More... | |
virtual casacore::Int | spectralWindow () const override |
Return current SpectralWindow. More... | |
virtual casacore::Bool | weightSpectrumExists () const override |
Determine whether WEIGHT_SPECTRUM exists. More... | |
virtual casacore::Bool | sigmaSpectrumExists () const override |
Determine whether SIGMA_SPECTRUM exists. More... | |
virtual casacore::Bool | allBeamOffsetsZero () const override |
Return the number of sub-intervals in the current chunk. More... | |
virtual std::pair< bool, casacore::MDirection > | getPointingAngle (int antenna, double time) const override |
virtual casacore::MDirection | azel0 (double time) const override |
Return the antenna AZ/EL casacore::Vector (nant) More... | |
virtual const casacore::Vector < casacore::MDirection > & | azel (double time) const override |
static void azel0Calculate (double time, MSDerivedValues & msd, MDirection & azel0, const MEpoch & mEpoch0); More... | |
virtual const casacore::Vector < casacore::Float > & | feed_pa (double time) const override |
static void azelCalculate (double time, MSDerivedValues & msd, Vector<MDirection> & azel, Int nAnt, const MEpoch & mEpoch0); More... | |
virtual const casacore::Cube < casacore::RigidVector < double, 2 > > & | getBeamOffsets () const override |
static Vector<Float> feed_paCalculate (double time, MSDerivedValues & msd, Int nAntennas, const MEpoch & mEpoch0, const Vector<Float> & receptor0Angle); More... | |
virtual double | hourang (double time) const override |
Return the hour angle for the specified time. More... | |
virtual const casacore::Float & | parang0 (double time) const override |
Return nominal parallactic angle at specified time (does not include feed position angle offset–see feed_pa) A global value for all antennas (e.g., small array) More... | |
virtual const casacore::Vector < casacore::Float > & | parang (double time) const override |
Per antenna: More... | |
virtual const casacore::MDirection & | phaseCenter () const override |
Return the current phase center as an MDirection. More... | |
virtual const casacore::Cube < double > & | receptorAngles () const override |
Return receptor angles for all antennae and feeds First axis of the cube is a receptor number, 2nd is antennaId, 3rd is feedId Note: the method is intended to provide an access to MSIter::receptorAngles for VisBuffer in the multi-feed case. More... | |
virtual const casacore::Vector < casacore::String > & | antennaMounts () const override |
+=========================+ | | | Chunk and casacore::MS Level casacore::Data | | | +=========================+ More... | |
virtual casacore::MEpoch | getEpoch () const override |
virtual casacore::Vector<casacore::MPosition> antennaPositions () const; casacore::MSDerivedValues makeMsd (); More... | |
virtual const VisImagingWeight & | getImagingWeightGenerator () const override |
Return imaging weight (a weight for each channel) virtual casacore::Matrix<casacore::Float> & imagingWeight (casacore::Matrix<casacore::Float> & wt) const;. More... | |
virtual casacore::MFrequency::Types | getObservatoryFrequencyType () const override |
virtual casacore::MPosition | getObservatoryPosition () const override |
virtual casacore::Vector < casacore::Float > | getReceptor0Angle () override |
virtual casacore::Int | getReportingFrameOfReference () const override |
virtual void | setReportingFrameOfReference (casacore::Int frame) override |
virtual casacore::Vector < casacore::Int > | getChannels (double time, casacore::Int frameOfReference, casacore::Int spectralWindowId, casacore::Int msId) const override |
virtual casacore::Vector < casacore::Int > | getCorrelations () const override |
virtual casacore::Vector < casacore::Stokes::StokesTypes > | getCorrelationTypesDefined () const override |
virtual casacore::Vector < casacore::Stokes::StokesTypes > | getCorrelationTypesSelected () const override |
virtual casacore::Vector< double > | getFrequencies (double time, casacore::Int frameOfReference, casacore::Int spectralWindowId, casacore::Int msId) const override |
virtual casacore::Int | msId () const override |
reference to actual ms in interator More... | |
virtual const casacore::MeasurementSet & | ms () const override |
virtual casacore::Int | getNMs () const override |
virtual casacore::String | msName () const override |
Name of nominal MS (will typically be beneath several layers) More... | |
virtual void | slurp () const override |
Call to use the slurp i/o method for all scalar columns. More... | |
virtual const vi::SubtableColumns & | subtableColumns () const override |
Access the current casacore::ROMSColumns object in MSIter. More... | |
virtual const SpectralWindowChannels & | getSpectralWindowChannels (casacore::Int msId, casacore::Int spectralWindowId) const override |
get back the selected spectral windows and spectral channels for current ms More... | |
virtual void | useImagingWeight (const VisImagingWeight &imWgt) override |
assign a VisImagingWeight object to this iterator More... | |
virtual casacore::Int | nAntennas () const override |
Return number of antennasm spws, polids, ddids. More... | |
virtual casacore::Int | nDataDescriptionIds () const override |
virtual casacore::Int | nPolarizationIds () const override |
virtual casacore::Int | nRowsInChunk () const override |
virtual casacore::Int | nRowsViWillSweep () const override |
virtual casacore::Int | nSpectralWindows () const override |
virtual void | writeBackChanges (VisBuffer2 *vb) override |
+----------------—+ | | | Writeback Methods | | | +----------------—+ More... | |
virtual void | writeFlag (const casacore::Matrix< casacore::Bool > &flag) |
Write/modify the flags in the data. More... | |
virtual void | writeFlag (const casacore::Cube< casacore::Bool > &flag) override |
Write/modify the flags in the data. More... | |
virtual void | writeFlagRow (const casacore::Vector< casacore::Bool > &rowflags) override |
Write/modify the flag row column; dimension casacore::Vector (nrow) More... | |
virtual void | writeFlagCategory (const casacore::Array< casacore::Bool > &fc) override |
virtual void | writeVisCorrected (const casacore::Cube< casacore::Complex > &vis) override |
Write/modify the visibilities. More... | |
virtual void | writeVisModel (const casacore::Cube< casacore::Complex > &vis) override |
virtual void | writeVisObserved (const casacore::Cube< casacore::Complex > &vis) override |
virtual void | writeWeight (const casacore::Matrix< casacore::Float > &wt) override |
Write/modify the weights. More... | |
virtual void | writeWeightSpectrum (const casacore::Cube< casacore::Float > &wtsp) override |
Write/modify the weightMat virtual void writeWeightMat (const casacore::Matrix<casacore::Float> & wtmat); More... | |
virtual void | writeSigmaSpectrum (const casacore::Cube< casacore::Float > &sigsp) override |
Write/modify the sigmaSpectrum. More... | |
virtual void | writeSigma (const casacore::Matrix< casacore::Float > &sig) override |
Write/modify the Sigma. More... | |
virtual void | writeModel (const casacore::RecordInterface &rec, casacore::Bool iscomponentlist=true, casacore::Bool incremental=false) override |
Write/modify the ncorr x nrow SigmaMat. More... | |
virtual void | setWeightScaling (casacore::CountedPtr< WeightScaling > weightscaling) override |
virtual casacore::Bool | hasWeightScaling () const override |
virtual casacore::CountedPtr < WeightScaling > | getWeightScaling () const override |
const casacore::ROMSAntennaColumns & | antennaSubtablecols () const override |
const casacore::ROMSDataDescColumns & | dataDescriptionSubtablecols () const override |
Access to dataDescription subtable. More... | |
const casacore::ROMSFeedColumns & | feedSubtablecols () const override |
Access to feed subtable. More... | |
const casacore::ROMSFieldColumns & | fieldSubtablecols () const override |
Access to field subtable. More... | |
const casacore::ROMSFlagCmdColumns & | flagCmdSubtablecols () const override |
Access to flagCmd subtable. More... | |
const casacore::ROMSHistoryColumns & | historySubtablecols () const override |
Access to history subtable. More... | |
const casacore::ROMSObservationColumns & | observationSubtablecols () const override |
Access to observation subtable. More... | |
const casacore::ROMSPointingColumns & | pointingSubtablecols () const override |
Access to pointing subtable. More... | |
const casacore::ROMSPolarizationColumns & | polarizationSubtablecols () const override |
Access to polarization subtable. More... | |
const casacore::ROMSProcessorColumns & | processorSubtablecols () const override |
Access to processor subtable. More... | |
const casacore::ROMSSpWindowColumns & | spectralWindowSubtablecols () const override |
Access to spectralWindow subtable. More... | |
const casacore::ROMSStateColumns & | stateSubtablecols () const override |
Access to state subtable. More... | |
const casacore::ROMSDopplerColumns & | dopplerSubtablecols () const override |
Access to doppler subtable. More... | |
const casacore::ROMSFreqOffsetColumns & | freqOffsetSubtablecols () const override |
Access to freqOffset subtable. More... | |
const casacore::ROMSSourceColumns & | sourceSubtablecols () const override |
Access to source subtable. More... | |
const casacore::ROMSSysCalColumns & | sysCalSubtablecols () const override |
Access to sysCal subtable. More... | |
const casacore::ROMSWeatherColumns & | weatherSubtablecols () const override |
Access to weather subtable. More... | |
Public Member Functions inherited from casa::vi::ViImplementation2 | |
ViImplementation2 (const ViImplementation2 &)=delete | |
make noncopyable... More... | |
ViImplementation2 & | operator= (const ViImplementation2 &)=delete |
ViImplementation2 () | |
virtual | ~ViImplementation2 () |
Destructor. More... | |
virtual void | initWeightSpectrum (const casacore::Cube< casacore::Float > &) |
Initialize the weightSpectrum. More... | |
virtual void | initSigmaSpectrum (const casacore::Cube< casacore::Float > &) |
Initialize the sigmaSpectrum. More... | |
Private Member Functions | |
void | filter () |
Filtration operation increment the iterator until given subchunk passes through the filter. More... | |
void | filterChunk () |
Private Attributes | |
casacore::Record | configuration_p |
Filter * | filter_p |
casacore::Int | num_filtrates_p |
casacore::Vector< casacore::Bool > | is_filtrate_p |
casacore::Vector< bool > | is_valid_subchunk_p |
boolean flag for each subchunk in the current chunk (True: valid, False: invalid) More... | |
friend | FiltrationTVIFactory |
FiltrationTVI is an implementation of data filtering.
Public interface
FiltrationTVI works as a visibility filter, returning only necessary data chunk when iterating through the data. It takes filter implementation class as its template argument, and work with it to filter out unwanted data chunk. You can change the behavior of the class by simply replacing filter implementation with the one that fits your usecase.
For single dish calibration, we need a mechanism to select the data chunk necessary for calibration. This selection associates with the calibration type so it is completely different from user-specified selection.
Definition at line 128 of file FiltrationTVI.h.
|
virtual |
Destructor.
|
protected |
|
virtual |
+=========================+ | | | Subchunk casacore::Data Accessors | | | +=========================+
Return antenna1
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return antenna2.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return the current ArrayId.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
+=========================+ | | | Chunk and casacore::MS Level casacore::Data | | | +=========================+
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return actual time interval.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return feed1.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return feed2.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return the current FieldId.
Reimplemented from casa::vi::TransformingVi2.
|
private |
Filtration operation increment the iterator until given subchunk passes through the filter.
|
private |
|
virtual |
Return flag for each polarization, channel and row.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return flag for each channel & row.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return flags for each polarization, channel, category, and row.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return row flag.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return FLOAT_DATA as a casacore::Cube (npol, nchan, nrow) if found in the MS.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return the row ids as from the original root table.
This is useful to find correspondance between a given row in this iteration to the original ms row
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return feed configuration matrix for specified antenna.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return the number of rows in the current iteration FiltrationTVI may change the number of rows when given vb is partly filtrate.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return the OBSERVATION_IDs.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
+==================================+ | | | Iteration Control and Monitoring | | | +==================================+
Methods to control and monitor subchunk iteration
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Methods to control chunk iterator.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return the PROCESSOR_IDs.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return scan number.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return sigma.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return sgimaspectrum (a sigma for each channel)
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return current SpectralWindow.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return the STATE_IDs.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return MJD midpoint of interval.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return MJD centroid of interval.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return nominal time interval.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return u,v and w (in meters)
Reimplemented from casa::vi::TransformingVi2.
|
inlinevirtual |
Report the the ViImplementation type.
Reimplemented from casa::vi::TransformingVi2.
Definition at line 137 of file FiltrationTVI.h.
References casa::vi::FiltrationTVI< Filter >::filter_p, casa::vi::TransformingVi2::getVii(), and casa::vi::ViImplementation2::ViiType().
|
virtual |
Return the visibilities as found in the casacore::MS, casacore::Cube (npol,nchan,nrow).
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return the shape of the visibility Cube.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return weight.
Reimplemented from casa::vi::TransformingVi2.
|
virtual |
Return weightspectrum (a weight for each channel)
Reimplemented from casa::vi::TransformingVi2.
|
private |
Definition at line 308 of file FiltrationTVI.h.
|
private |
Definition at line 309 of file FiltrationTVI.h.
Referenced by casa::vi::FiltrationTVI< Filter >::ViiType().
|
private |
Definition at line 316 of file FiltrationTVI.h.
|
private |
Definition at line 311 of file FiltrationTVI.h.
|
private |
boolean flag for each subchunk in the current chunk (True: valid, False: invalid)
Definition at line 314 of file FiltrationTVI.h.
|
private |
Definition at line 310 of file FiltrationTVI.h.