27 #ifndef SYNTHESIS_SYNTHESISUTILS_H
28 #define SYNTHESIS_SYNTHESISUTILS_H
54 class SynthesisParams;
55 class SynthesisParamsImage;
56 class SynthesisParamsSelect;
casacore::String imageName
casacore::Quantity gwidth
A Vector of integers, for indexing into Array<T> objects.
A Measure: astronomical direction.
casacore::CoordinateSystem buildCoordinateSystem(ROVisibilityIterator *rvi)
Generate casacore::Coordinate System.
static casacore::String makeResourceFilename(int pid)
casacore::Vector< casacore::String > startModel
void fromRecord(const casacore::Record &inrec)
casacore::MFrequency mFreqStart
casacore::String autoMaskAlgorithm
A Measure: position on Earth.
virtual casacore::Record toRecord() const =0
casacore::String verify() const
casacore::Record getcsys() const
casacore::Int facets
Facets for gridding.
casacore::Record toRecord() const
casacore::IPosition shp() const
casacore::Bool doGrowPrune
casacore::Bool useDoublePrec
casacore::String movingSource
casacore::String datacolumn
casacore::Bool trackSource
casacore::Quantity distance
moving source Moving phase center ?
static const casacore::String g_enableOptMemProfile
casacore::Float lowNoiseThreshold
casacore::String stringToQuantity(casacore::String instr, casacore::Quantity &qa) const
casacore::MDirection phaseCenter
casacore::Int deconvolverId
VisibilityIterator2 iterates through one or more readonly MeasurementSets.
casacore::Int wprojplanes
Geometric parameters needed for a sky projection to a plane.
casacore::Record cubeImagePartition(casacore::Record &impars, casacore::Int npart)
Image cube partitioning rules for CUBE imaging.
casacore::Quantity truncateSize
casacore::Int nchan
Spectral coordinates (TT : Add other params here)
casacore::Record stepRecord
casacore::Bool pseudoi
Stokes info.
casacore::Record continuumDataPartition(casacore::Record &selpars, const casacore::Int npart)
All functions here are stand-alone, self-contained methods.
casacore::Int convSupport
casacore::String maskThreshold
casacore::String maskString
casacore::MDirection getMovingSourceDir(const casacore::MeasurementSet &ms, const casacore::MEpoch &refEp, const casacore::MPosition &refpos, const casacore::MDirection::Types outframe)
get the moving source direction in frame requested
casacore::Record reffreqRecord
void fromRecord(const casacore::Record &inrec)
casacore::MFrequency mFreqStep
virtual void setDefaults()=0
casacore::Quantity velStart
casacore::String ftmachine
casacore::Quantity sysvelvalue
casacore::Float computePAStep
casacore::Float cutThreshold
casacore::Float scalebias
casacore::String MDopToVelString(casacore::Record &rec)
casacore::Float minWeight
casacore::String readVal(const casacore::Record &rec, casacore::String id, casacore::String &val) const
All return strings are error messages.
casacore::MDirection trackDir
casacore::Float smoothFactor
casacore::MDirection trackDir
casacore::MFrequency::Types freqframe
A Measure: radial velocity.
casacore::Record toRecord() const
casacore::GaussianBeam restoringbeam
casacore::String pointingDirCol
For single-dish imaging.
casacore::Record updateParams(const casacore::Record &impar)
check consistency of image parameters when csys record exists and update accordingly based on csys re...
casacore::Bool aTermOn
For wb-aprojection ftm.
virtual SynthesisParamsSelect & operator=(const SynthesisParamsSelect &other)
copy semantics
static casacore::Int validate(const VisBuffer &vb)
Validate the supplied VB.
A Measure: instant in time.
casacore::Quantity velStep
casacore::Float minBeamFrac
casacore::Bool interactive
casacore::Bool usescratch
casacore::String QuantityToString(casacore::Quantity val) const
casacore::Quantity jwidth
Represents a Gaussian restoring beam associated with an image.
casacore::Int chanchunks
casacore::Cube chunks for gridding
casacore::String interpolation
Spectral axis interpolation.
Types
Types of known MDirections Warning: The order defines the order in the translation matrix FromTo in ...
casacore::MRadialVelocity mVelStart
casacore::Float fracOfPeak
A Measure: wave characteristics.
casacore::String sysvelframe
casacore::String algorithm
casacore::Quantity distance
Moving phase center ?
casacore::Int phaseCenterFieldId
casacore::Float noiseThreshold
casacore::MPosition obslocation
casacore::String gridder
FTMachine setup.
casacore::String qmframe
private variable to store ref frame defined in casacore::Quantity or casacore::Measure in start or st...
casacore::String MDirectionToString(casacore::MDirection val) const
Others.
casacore::Quantity freqStep
casacore::Bool usePointing
casacore::Record startRecord
for holding quantity or measure records
casacore::Record toRecord() const
casacore::String mType
Mapper Type.
casacore::String verify() const
casacore::String stringToMDirection(casacore::String instr, casacore::MDirection &md) const
casacore::String maskResolution
static void getResource(casacore::String label="", casacore::String fname="")
casacore::Quantity refFreq
virtual ~SynthesisParams()
static casacore::String mergeSpwSel(const casacore::Vector< casacore::Int > &fspw, const casacore::Vector< casacore::Int > &fstart, const casacore::Vector< casacore::Int > &fnchan, const casacore::Matrix< casacore::Int > &spwsel)
casacore::Bool clipMinMax
casacore::Vector< casacore::Quantity > cellsize
casacore::MFrequency::Types freqFrame
casacore::Float skyPosThreshold
casacore::Int nTaylorTerms
casacore::String verify() const
static casacore::String g_hostname
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
void fromRecord(const casacore::Record &inrec)
casacore::Vector< casacore::Quantity > restFreq
casacore::Vector< casacore::Float > scales
casacore::Quantity freqStart
casacore::Float negativeThreshold
void fromRecord(const casacore::Record &inrec)
casacore::Record toRecord() const
casacore::Bool useAutoCorr
virtual void fromRecord(const casacore::Record &inrec)=0
casacore::Int nTaylorTerms
A Table intended to hold astronomical data (a set of Measurements).
casacore::MRadialVelocity mVelStep
casacore::String imageName
casacore::Vector< casacore::Int > decideNPolPlanes(const casacore::String &stokes) const
casacore::Vector< casacore::Int > imshape
static casacore::String asComprehensibleDirectionString(casacore::MDirection const &direction)
return comprehensible direction string from given MDirection object
casacore::Bool getImFreq(casacore::Vector< casacore::Double > &ChanFreq, casacore::Vector< casacore::Double > &ChanWidth, casacore::Double &refPix, casacore::String &specmode, const casacore::MEpoch &obsEpoch, const casacore::MPosition &obsPosition, const casacore::Vector< casacore::Double > &dataChanFreqs, const casacore::Vector< casacore::Double > &dataFreqRes, const casacore::MFrequency::Types &dataFrame, const casacore::Quantity &qrestfreq, const casacore::Double &freqmin, const casacore::Double &freqmax, const casacore::MDirection &phaseCenter)
static casacore::Vector< casacore::uInt > primeFactors(casacore::uInt n, casacore::Bool douniq=true)
VisBuffer2s encapsulate one chunk of visibility data for processing.
casacore::String deconvolver
casacore::Projection projection
casacore::Bool trackSource
casacore::Float rotatePAStep
casacore::Vector< casacore::Int > imsize
static casacore::String g_startTimestamp
String: the storage and methods of handling collections of characters.
static casacore::Record cubeDataImagePartition(const casacore::Record &selpars, const casacore::CoordinateSystem &incsys, const casacore::Int npart, const casacore::Int nchannel, casacore::Vector< casacore::CoordinateSystem > &outCsys, casacore::Vector< casacore::Int > &outnChan)
casacore::CoordinateSystem and number of channels of original cube is passed in Output record is the ...
VisBuffers encapsulate one chunk of visibility data for processing.
casacore::String recordQMToString(const casacore::Record &rec) const
static casacore::Int getOptimumSize(const casacore::Int npix)
casacore::CoordinateSystem buildCoordinateSystemCore(casacore::MeasurementSet &msobj, casacore::Vector< casacore::Int > spwids, casacore::Int fld, casacore::Double freqmin, casacore::Double freqmax, casacore::Double datafstart, casacore::Double datafend)
casacore::String findSpecMode(const casacore::String &mode) const
static casacore::Record cubeDataPartition(const casacore::Record &selpars, const casacore::Int npart, const casacore::Double freqBeg, const casacore::Double freqEnd, const casacore::MFrequency::Types eltype=casacore::MFrequency::LSRK)
casacore::Data partitioning rules for CUBE imaging uniform contiguous partition in frequency step No...
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
casacore::String imageName
Sky coordinates.
ROVisibilityIterator iterates through one or more readonly MeasurementSets.
casacore::Float minPercentChange
casacore::String verify() const
casacore::String maskType
casacore::Vector< casacore::String > startModel
casacore::Bool freqFrameValid
freqframe coversion?
SynthesisUtilMethods()
Default constructor.
static casacore::Int parseProcStatusLine(const std::string &str)
casacore::Float sidelobeThreshold
casacore::String convFunc
Interconvert pixel and world coordinates.
virtual SynthesisParams & operator=(const SynthesisParams &)
As there is no state to copy.
casacore::String movingSource
casacore::Record restfreqRecord
casacore::String mveltype
casacore::Int growIterations
casacore::Record csysRecord
optional coordsys record
casacore::Float maskResByBeam
casacore::Vector< casacore::String > maskList
casacore::Record sysvelRecord
virtual casacore::String verify() const =0