casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
casa::MSTransformRegridder Class Reference

MSTransformRegridder definition. More...

#include <MSTransformRegridder.h>

Public Member Functions

 MSTransformRegridder ()
 
 ~MSTransformRegridder ()
 

Static Public Member Functions

static casacore::Bool combineSpws (casacore::LogIO &os, casacore::String msName, const casacore::Vector< casacore::Int > &spwids, casacore::Vector< casacore::Double > &newCHAN_FREQ, casacore::Vector< casacore::Double > &newCHAN_WIDTH, std::vector< std::vector< casacore::Int > > &averageWhichChan, std::vector< std::vector< casacore::Int > > &averageWhichSPW, std::vector< std::vector< casacore::Double > > &averageChanFrac, casacore::Bool verbose=false)
 Make one spectral window from all SPWs given by the SPW Ids vector. More...
 
static casacore::Bool combineSpwsCore (casacore::LogIO &os, casacore::MeasurementSet &ms_p, const casacore::Vector< casacore::Int > &spwids, casacore::Vector< casacore::Double > &newCHAN_FREQ, casacore::Vector< casacore::Double > &newCHAN_WIDTH, std::vector< std::vector< casacore::Int > > &averageWhichChan, std::vector< std::vector< casacore::Int > > &averageWhichSPW, std::vector< std::vector< casacore::Double > > &averageChanFrac, casacore::Bool verbose=false)
 Make one spectral window from all SPWs given by the SPW Ids vector. More...
 
static casacore::Bool calcChanFreqs (casacore::LogIO &os, casacore::Vector< casacore::Double > &newCHAN_FREQ, casacore::Vector< casacore::Double > &newCHAN_WIDTH, casacore::Double &weightScale, const casacore::Vector< casacore::Double > &oldCHAN_FREQ, const casacore::Vector< casacore::Double > &oldCHAN_WIDTH, const casacore::MDirection phaseCenter, const casacore::MFrequency::Types theOldRefFrame, const casacore::MEpoch theObsTime, const casacore::MPosition mObsPos, const casacore::String &mode, const int nchan, const casacore::String &start, const casacore::String &width, const casacore::String &restfreq, const casacore::String &outframe, const casacore::String &veltype, const casacore::Bool verbose=false, const casacore::MRadialVelocity mRV=casacore::MRadialVelocity())
 A wrapper for regridChanBounds() which takes the user interface type re-gridding parameters The ready-made grid is returned in newCHAN_FREQ and newCHAN_WIDTH. More...
 
static casacore::Bool convertGridPars (casacore::LogIO &os, const casacore::String &mode, const int nchan, const casacore::String &start, const casacore::String &width, const casacore::String &interp, const casacore::String &restfreq, const casacore::String &outframe, const casacore::String &veltype, casacore::String &t_mode, casacore::String &t_outframe, casacore::String &t_regridQuantity, casacore::Double &t_restfreq, casacore::String &t_regridInterpMeth, casacore::Double &t_cstart, casacore::Double &t_bandwidth, casacore::Double &t_cwidth, casacore::Bool &t_centerIsStart, casacore::Bool &t_startIsEnd, casacore::Int &t_nchan, casacore::Int &t_width, casacore::Int &t_start)
 Helper function for handling the re-gridding parameter user input. More...
 
static casacore::Bool regridChanBounds (casacore::Vector< casacore::Double > &newChanLoBound, casacore::Vector< casacore::Double > &newChanHiBound, const casacore::Double regridCenter, const casacore::Double regridBandwidth, const casacore::Double regridChanWidth, const casacore::Double regridVeloRestfrq, const casacore::String regridQuant, const casacore::Vector< casacore::Double > &transNewXin, const casacore::Vector< casacore::Double > &transCHAN_WIDTH, casacore::String &message, const casacore::Bool centerIsStart=false, const casacore::Bool startIsEnd=false, const casacore::Int nchan=0, const casacore::Int width=0, const casacore::Int start=-1)
 Calculate the final new channel boundaries from the re-regridding parameters and the old channel boundaries (already transformed to the desired reference frame). More...
 
static casacore::lDouble vrad (const casacore::lDouble freq, const casacore::lDouble rest)
 The following inline convenience methods for regridSpw bypass the whole CASA measure system because when they are used, they can assume that the frame stays the same and the units are OK. More...
 
static casacore::lDouble vopt (const casacore::lDouble freq, const casacore::lDouble rest)
 
static casacore::lDouble lambda (const casacore::lDouble freq)
 
static casacore::lDouble freq_from_vrad (const casacore::lDouble vrad, const casacore::lDouble rest)
 
static casacore::lDouble freq_from_vopt (const casacore::lDouble vopt, const casacore::lDouble rest)
 
static casacore::lDouble freq_from_lambda (const casacore::lDouble lambda)
 

Detailed Description

MSTransformRegridder definition.

Definition at line 45 of file MSTransformRegridder.h.

Constructor & Destructor Documentation

casa::MSTransformRegridder::MSTransformRegridder ( )
casa::MSTransformRegridder::~MSTransformRegridder ( )

Member Function Documentation

static casacore::Bool casa::MSTransformRegridder::calcChanFreqs ( casacore::LogIO os,
casacore::Vector< casacore::Double > &  newCHAN_FREQ,
casacore::Vector< casacore::Double > &  newCHAN_WIDTH,
casacore::Double weightScale,
const casacore::Vector< casacore::Double > &  oldCHAN_FREQ,
const casacore::Vector< casacore::Double > &  oldCHAN_WIDTH,
const casacore::MDirection  phaseCenter,
const casacore::MFrequency::Types  theOldRefFrame,
const casacore::MEpoch  theObsTime,
const casacore::MPosition  mObsPos,
const casacore::String mode,
const int  nchan,
const casacore::String start,
const casacore::String width,
const casacore::String restfreq,
const casacore::String outframe,
const casacore::String veltype,
const casacore::Bool  verbose = false,
const casacore::MRadialVelocity  mRV = casacore::MRadialVelocity() 
)
static

A wrapper for regridChanBounds() which takes the user interface type re-gridding parameters The ready-made grid is returned in newCHAN_FREQ and newCHAN_WIDTH.

Parameters
newCHAN_FREQOutput
oldCHAN_FREQcasacore::Input (original grid)
phaseCenterRe-gridding parameters
mRVAdditional radial velocity shift to apply, used e.g. when outframe=="SOURCE"
static casacore::Bool casa::MSTransformRegridder::combineSpws ( casacore::LogIO os,
casacore::String  msName,
const casacore::Vector< casacore::Int > &  spwids,
casacore::Vector< casacore::Double > &  newCHAN_FREQ,
casacore::Vector< casacore::Double > &  newCHAN_WIDTH,
std::vector< std::vector< casacore::Int > > &  averageWhichChan,
std::vector< std::vector< casacore::Int > > &  averageWhichSPW,
std::vector< std::vector< casacore::Double > > &  averageChanFrac,
casacore::Bool  verbose = false 
)
static

Make one spectral window from all SPWs given by the SPW Ids vector.

static casacore::Bool casa::MSTransformRegridder::combineSpwsCore ( casacore::LogIO os,
casacore::MeasurementSet ms_p,
const casacore::Vector< casacore::Int > &  spwids,
casacore::Vector< casacore::Double > &  newCHAN_FREQ,
casacore::Vector< casacore::Double > &  newCHAN_WIDTH,
std::vector< std::vector< casacore::Int > > &  averageWhichChan,
std::vector< std::vector< casacore::Int > > &  averageWhichSPW,
std::vector< std::vector< casacore::Double > > &  averageChanFrac,
casacore::Bool  verbose = false 
)
static

Make one spectral window from all SPWs given by the SPW Ids vector.

static casacore::Bool casa::MSTransformRegridder::convertGridPars ( casacore::LogIO os,
const casacore::String mode,
const int  nchan,
const casacore::String start,
const casacore::String width,
const casacore::String interp,
const casacore::String restfreq,
const casacore::String outframe,
const casacore::String veltype,
casacore::String t_mode,
casacore::String t_outframe,
casacore::String t_regridQuantity,
casacore::Double t_restfreq,
casacore::String t_regridInterpMeth,
casacore::Double t_cstart,
casacore::Double t_bandwidth,
casacore::Double t_cwidth,
casacore::Bool t_centerIsStart,
casacore::Bool t_startIsEnd,
casacore::Int t_nchan,
casacore::Int t_width,
casacore::Int t_start 
)
static

Helper function for handling the re-gridding parameter user input.

static casacore::lDouble casa::MSTransformRegridder::freq_from_lambda ( const casacore::lDouble  lambda)
inlinestatic

Definition at line 151 of file MSTransformRegridder.h.

References casacore::C::c.

static casacore::lDouble casa::MSTransformRegridder::freq_from_vopt ( const casacore::lDouble  vopt,
const casacore::lDouble  rest 
)
inlinestatic

Definition at line 150 of file MSTransformRegridder.h.

References casacore::C::c.

static casacore::lDouble casa::MSTransformRegridder::freq_from_vrad ( const casacore::lDouble  vrad,
const casacore::lDouble  rest 
)
inlinestatic

Definition at line 149 of file MSTransformRegridder.h.

References casacore::C::c.

static casacore::lDouble casa::MSTransformRegridder::lambda ( const casacore::lDouble  freq)
inlinestatic

Definition at line 148 of file MSTransformRegridder.h.

References casacore::C::c.

static casacore::Bool casa::MSTransformRegridder::regridChanBounds ( casacore::Vector< casacore::Double > &  newChanLoBound,
casacore::Vector< casacore::Double > &  newChanHiBound,
const casacore::Double  regridCenter,
const casacore::Double  regridBandwidth,
const casacore::Double  regridChanWidth,
const casacore::Double  regridVeloRestfrq,
const casacore::String  regridQuant,
const casacore::Vector< casacore::Double > &  transNewXin,
const casacore::Vector< casacore::Double > &  transCHAN_WIDTH,
casacore::String message,
const casacore::Bool  centerIsStart = false,
const casacore::Bool  startIsEnd = false,
const casacore::Int  nchan = 0,
const casacore::Int  width = 0,
const casacore::Int  start = -1 
)
static

Calculate the final new channel boundaries from the re-regridding parameters and the old channel boundaries (already transformed to the desired reference frame).

Returns false if input parameters were invalid and no useful boundaries could be created

static casacore::lDouble casa::MSTransformRegridder::vopt ( const casacore::lDouble  freq,
const casacore::lDouble  rest 
)
inlinestatic

Definition at line 147 of file MSTransformRegridder.h.

References casacore::C::c.

static casacore::lDouble casa::MSTransformRegridder::vrad ( const casacore::lDouble  freq,
const casacore::lDouble  rest 
)
inlinestatic

The following inline convenience methods for regridSpw bypass the whole CASA measure system because when they are used, they can assume that the frame stays the same and the units are OK.

Definition at line 146 of file MSTransformRegridder.h.

References casacore::C::c.


The documentation for this class was generated from the following file: