casa::MSUtil Class Reference

#include <MSUtil.h>

List of all members.

Public Member Functions

 MSUtil ()
 Empty Constructor if needed.

Static Public Member Functions

static void getSpwInFreqRange (Vector< Int > &spw, Vector< Int > &start, Vector< Int > &nchan, const MeasurementSet &ms, const Double freqStart, const Double freqEnd, const Double freqStep, const MFrequency::Types freqframe=MFrequency::LSRK, const Int fieldId=0)
 This method gives you the channels (and spws) that will cover the freq range provided in the frame the user stated.
static void getSpwInFreqRangeAllFields (Vector< Int > &spw, Vector< Int > &start, Vector< Int > &nchan, const MeasurementSet &ms, const Double freqStart, const Double freqEnd, const Double freqStep, const MFrequency::Types freqframe=MFrequency::LSRK)
 A version of the above for all the fields in the MS.
static void getFreqRangeInSpw (Double &freqStart, Double &freqEnd, const Vector< Int > &spw, const Vector< Int > &start, const Vector< Int > &nchan, const MeasurementSet &ms, const MFrequency::Types freqframe=MFrequency::LSRK, const Int fieldId=0)
 The following wil provide the range of frequency convered in the frame requested by the spw, channel selection.
static Vector< String > getSpectralFrames (Vector< MFrequency::Types > &types, const MeasurementSet &ms)
 Return all the selected SPW types selected in the selected MS if the input ms is a reference MS.

Static Private Member Functions

static void rejectConsecutive (const Vector< Double > &t, Vector< Double > &retval, Vector< Int > &indx)

Detailed Description

Definition at line 35 of file MSUtil.h.


Constructor & Destructor Documentation

casa::MSUtil::MSUtil (  ) 

Empty Constructor if needed.


Member Function Documentation

static void casa::MSUtil::getFreqRangeInSpw ( Double &  freqStart,
Double &  freqEnd,
const Vector< Int > &  spw,
const Vector< Int > &  start,
const Vector< Int > &  nchan,
const MeasurementSet &  ms,
const MFrequency::Types  freqframe = MFrequency::LSRK,
const Int  fieldId = 0 
) [static]

The following wil provide the range of frequency convered in the frame requested by the spw, channel selection.

static Vector<String> casa::MSUtil::getSpectralFrames ( Vector< MFrequency::Types > &  types,
const MeasurementSet &  ms 
) [static]

Return all the selected SPW types selected in the selected MS if the input ms is a reference MS.

Else it will return all the types in the SPW table

static void casa::MSUtil::getSpwInFreqRange ( Vector< Int > &  spw,
Vector< Int > &  start,
Vector< Int > &  nchan,
const MeasurementSet &  ms,
const Double  freqStart,
const Double  freqEnd,
const Double  freqStep,
const MFrequency::Types  freqframe = MFrequency::LSRK,
const Int  fieldId = 0 
) [static]

This method gives you the channels (and spws) that will cover the freq range provided in the frame the user stated.

The conversion from the data frame will be done properly for finding this spw, start, nchan will be resized appropriately

static void casa::MSUtil::getSpwInFreqRangeAllFields ( Vector< Int > &  spw,
Vector< Int > &  start,
Vector< Int > &  nchan,
const MeasurementSet &  ms,
const Double  freqStart,
const Double  freqEnd,
const Double  freqStep,
const MFrequency::Types  freqframe = MFrequency::LSRK 
) [static]

A version of the above for all the fields in the MS.

static void casa::MSUtil::rejectConsecutive ( const Vector< Double > &  t,
Vector< Double > &  retval,
Vector< Int > &  indx 
) [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1