casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
casa::refim::SynthesisUtils Namespace Reference

Functions

void rotateComplexArray (casacore::LogIO &logIO, casacore::Array< casacore::Complex > &inArray, casacore::CoordinateSystem &inCS, casacore::Array< casacore::Complex > &outArray, casacore::Double dAngleRad, casacore::String interpMathod=casacore::String("CUBIC"), casacore::Bool modifyInCS=true)
 using namespace vi; More...
 
void findLatticeMax (const casacore::Array< casacore::Complex > &lattice, casacore::Vector< casacore::Float > &maxAbs, casacore::Vector< casacore::IPosition > &posMaxAbs)
 
void findLatticeMax (const casacore::ImageInterface< casacore::Complex > &lattice, casacore::Vector< casacore::Float > &maxAbs, casacore::Vector< casacore::IPosition > &posMaxAbs)
 
void findLatticeMax (const casacore::ImageInterface< casacore::Float > &lattice, casacore::Vector< casacore::Float > &maxAbs, casacore::Vector< casacore::IPosition > &posMaxAbs)
 
casacore::Int nint (const casacore::Double &v)
 
casacore::Int nint (const casacore::Float &v)
 
casacore::Bool near (const casacore::Double &d1, const casacore::Double &d2, const casacore::Double EPS=1E-6)
 
template<class T >
void SETVEC (casacore::Vector< T > &lhs, const casacore::Vector< T > &rhs)
 
template<class T >
void SETVEC (casacore::Array< T > &lhs, const casacore::Array< T > &rhs)
 
template<class T >
getenv (const char *name, const T defaultVal)
 
casacore::Float libreSpheroidal (casacore::Float nu)
 
casacore::Double getRefFreq (const VisBuffer2 &vb)
 
void makeFTCoordSys (const casacore::CoordinateSystem &coords, const casacore::Int &convSize, const casacore::Vector< casacore::Double > &ftRef, casacore::CoordinateSystem &ftCoords)
 
void expandFreqSelection (const casacore::Matrix< casacore::Double > &freqSelection, casacore::Matrix< casacore::Double > &expandedFreqList, casacore::Matrix< casacore::Double > &expandedConjFreqList)
 
template<class T >
void libreConvolver (casacore::Array< T > &c1, const casacore::Array< T > &c2)
 
casacore::Double conjFreq (const casacore::Double &freq, const casacore::Double &refFreq)
 
casacore::Double nearestValue (const casacore::Vector< casacore::Double > &list, const casacore::Double &val, casacore::Int &index)
 
template<class T >
stdNearestValue (const std::vector< T > &list, const T &val, casacore::Int &index)
 
casacore::CoordinateSystem makeUVCoords (casacore::CoordinateSystem &imageCoordSys, casacore::IPosition &shape)
 
casacore::Vector< casacore::IntmapSpwIDToDDID (const VisBuffer2 &vb, const casacore::Int &spwID)
 
casacore::Vector< casacore::IntmapSpwIDToPolID (const VisBuffer2 &vb, const casacore::Int &spwID)
 
void calcIntersection (const casacore::Int blc1[2], const casacore::Int trc1[2], const casacore::Float blc2[2], const casacore::Float trc2[2], casacore::Float blc[2], casacore::Float trc[2])
 
casacore::Bool checkIntersection (const casacore::Int blc1[2], const casacore::Int trc1[2], const casacore::Float blc2[2], const casacore::Float trc2[2])
 
casacore::String mjdToString (casacore::Time &mjd)
 
template<class Iterator >
Iterator Unique (Iterator first, Iterator last)
 
void showCS (const casacore::CoordinateSystem &cs, std::ostream &os, const casacore::String &msg=casacore::String())
 
const casacore::Array
< casacore::Complex > 
getCFPixels (const casacore::String &Dir, const casacore::String &fileName)
 
const casacore::IPosition getCFShape (const casacore::String &Dir, const casacore::String &fileName)
 
void rotate2 (const double &actualPA, CFCell &baseCFC, CFCell &cfc, const double &rotAngleIncr)
 
casacore::TableRecord getCFParams (const casacore::String &dirName, const casacore::String &fileName, casacore::Array< casacore::Complex > &pixelBuffer, casacore::CoordinateSystem &coordSys, casacore::Double &sampling, casacore::Double &paVal, casacore::Int &xSupport, casacore::Int &ySupport, casacore::Double &fVal, casacore::Double &wVal, casacore::Int &mVal, casacore::Double &conjFreq, casacore::Int &conjPoln, casacore::Bool loadPixels, casacore::Bool loadMiscInfo=true)
 
casacore::Vector
< casacore::String
parseBandName (const casacore::String &fullName)
 

Function Documentation

void casa::refim::SynthesisUtils::calcIntersection ( const casacore::Int  blc1[2],
const casacore::Int  trc1[2],
const casacore::Float  blc2[2],
const casacore::Float  trc2[2],
casacore::Float  blc[2],
casacore::Float  trc[2] 
)
casacore::Bool casa::refim::SynthesisUtils::checkIntersection ( const casacore::Int  blc1[2],
const casacore::Int  trc1[2],
const casacore::Float  blc2[2],
const casacore::Float  trc2[2] 
)
casacore::Double casa::refim::SynthesisUtils::conjFreq ( const casacore::Double freq,
const casacore::Double refFreq 
)
inline

Definition at line 114 of file Utils.h.

References casacore::sqrt().

void casa::refim::SynthesisUtils::expandFreqSelection ( const casacore::Matrix< casacore::Double > &  freqSelection,
casacore::Matrix< casacore::Double > &  expandedFreqList,
casacore::Matrix< casacore::Double > &  expandedConjFreqList 
)
void casa::refim::SynthesisUtils::findLatticeMax ( const casacore::Array< casacore::Complex > &  lattice,
casacore::Vector< casacore::Float > &  maxAbs,
casacore::Vector< casacore::IPosition > &  posMaxAbs 
)
void casa::refim::SynthesisUtils::findLatticeMax ( const casacore::ImageInterface< casacore::Complex > &  lattice,
casacore::Vector< casacore::Float > &  maxAbs,
casacore::Vector< casacore::IPosition > &  posMaxAbs 
)
void casa::refim::SynthesisUtils::findLatticeMax ( const casacore::ImageInterface< casacore::Float > &  lattice,
casacore::Vector< casacore::Float > &  maxAbs,
casacore::Vector< casacore::IPosition > &  posMaxAbs 
)
casacore::TableRecord casa::refim::SynthesisUtils::getCFParams ( const casacore::String dirName,
const casacore::String fileName,
casacore::Array< casacore::Complex > &  pixelBuffer,
casacore::CoordinateSystem coordSys,
casacore::Double sampling,
casacore::Double paVal,
casacore::Int xSupport,
casacore::Int ySupport,
casacore::Double fVal,
casacore::Double wVal,
casacore::Int mVal,
casacore::Double conjFreq,
casacore::Int conjPoln,
casacore::Bool  loadPixels,
casacore::Bool  loadMiscInfo = true 
)
const casacore::Array<casacore::Complex> casa::refim::SynthesisUtils::getCFPixels ( const casacore::String Dir,
const casacore::String fileName 
)
const casacore::IPosition casa::refim::SynthesisUtils::getCFShape ( const casacore::String Dir,
const casacore::String fileName 
)
template<class T >
T casa::refim::SynthesisUtils::getenv ( const char *  name,
const T  defaultVal 
)
casacore::Double casa::refim::SynthesisUtils::getRefFreq ( const VisBuffer2 &  vb)
template<class T >
void casa::refim::SynthesisUtils::libreConvolver ( casacore::Array< T > &  c1,
const casacore::Array< T > &  c2 
)
casacore::Float casa::refim::SynthesisUtils::libreSpheroidal ( casacore::Float  nu)
void casa::refim::SynthesisUtils::makeFTCoordSys ( const casacore::CoordinateSystem coords,
const casacore::Int convSize,
const casacore::Vector< casacore::Double > &  ftRef,
casacore::CoordinateSystem ftCoords 
)
casacore::CoordinateSystem casa::refim::SynthesisUtils::makeUVCoords ( casacore::CoordinateSystem imageCoordSys,
casacore::IPosition shape 
)
casacore::Vector<casacore::Int> casa::refim::SynthesisUtils::mapSpwIDToDDID ( const VisBuffer2 &  vb,
const casacore::Int spwID 
)
casacore::Vector<casacore::Int> casa::refim::SynthesisUtils::mapSpwIDToPolID ( const VisBuffer2 &  vb,
const casacore::Int spwID 
)
casacore::String casa::refim::SynthesisUtils::mjdToString ( casacore::Time mjd)
casacore::Bool casa::refim::SynthesisUtils::near ( const casacore::Double d1,
const casacore::Double d2,
const casacore::Double  EPS = 1E-6 
)
inline

Definition at line 86 of file Utils.h.

casacore::Double casa::refim::SynthesisUtils::nearestValue ( const casacore::Vector< casacore::Double > &  list,
const casacore::Double val,
casacore::Int index 
)
casacore::Int casa::refim::SynthesisUtils::nint ( const casacore::Double v)
inline

Definition at line 84 of file Utils.h.

References casacore::floor().

casacore::Int casa::refim::SynthesisUtils::nint ( const casacore::Float v)
inline

Definition at line 85 of file Utils.h.

References casacore::floor().

casacore::Vector<casacore::String> casa::refim::SynthesisUtils::parseBandName ( const casacore::String fullName)
void casa::refim::SynthesisUtils::rotate2 ( const double &  actualPA,
CFCell &  baseCFC,
CFCell &  cfc,
const double &  rotAngleIncr 
)
void casa::refim::SynthesisUtils::rotateComplexArray ( casacore::LogIO logIO,
casacore::Array< casacore::Complex > &  inArray,
casacore::CoordinateSystem inCS,
casacore::Array< casacore::Complex > &  outArray,
casacore::Double  dAngleRad,
casacore::String  interpMathod = casacore::String("CUBIC"),
casacore::Bool  modifyInCS = true 
)

using namespace vi;

template<class T >
void casa::refim::SynthesisUtils::SETVEC ( casacore::Vector< T > &  lhs,
const casacore::Vector< T > &  rhs 
)
inline
template<class T >
void casa::refim::SynthesisUtils::SETVEC ( casacore::Array< T > &  lhs,
const casacore::Array< T > &  rhs 
)
inline

Definition at line 96 of file Utils.h.

References casacore::Array< T >::resize(), and casacore::ArrayBase::shape().

void casa::refim::SynthesisUtils::showCS ( const casacore::CoordinateSystem cs,
std::ostream &  os,
const casacore::String msg = casacore::String() 
)
template<class T >
T casa::refim::SynthesisUtils::stdNearestValue ( const std::vector< T > &  list,
const T &  val,
casacore::Int index 
)
template<class Iterator >
Iterator casa::refim::SynthesisUtils::Unique ( Iterator  first,
Iterator  last 
)