26#ifndef MS_NEWMSSIMULATOR_H
27#define MS_NEWMSSIMULATOR_H
31#include <casacore/casa/aips.h>
32#include <casacore/casa/BasicSL/String.h>
33#include <casacore/casa/Arrays/Vector.h>
34#include <casacore/casa/Arrays/Matrix.h>
35#include <casacore/casa/Arrays/Cube.h>
36#include <casacore/casa/BasicSL/Complex.h>
37#include <casacore/casa/Quanta/Quantum.h>
38#include <casacore/measures/Measures/MPosition.h>
39#include <casacore/measures/Measures/MEpoch.h>
40#include <casacore/measures/Measures/MFrequency.h>
41#include <casacore/measures/Measures/MDirection.h>
43#include <casacore/tables/DataMan/TiledDataStManAccessor.h>
159 const double& state_cal = 0.,
const double& state_load = 0.,
160 const unsigned int state_sub_scan = 1,
161 const String& state_obs_mode =
"OBSERVE_TARGET.ON_SOURCE",
162 const String& observername =
"CASA simulator",
163 const String& projectname =
"CASA simulation");
171 const double& state_cal = 0.,
const double& state_load = 0.,
172 const unsigned int state_sub_scan = 1,
173 const String& state_obs_mode =
"OBSERVE_TARGET.ON_SOURCE",
174 const String& observername =
"CASA simulator",
175 const String& projectname =
"CASA simulation");
177 std::shared_ptr<MeasurementSet>
getMs()
const;
199 std::shared_ptr<MeasurementSet>
ms_p;
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
void longlat2global(Vector< Double > &xReturned, Vector< Double > &yReturned, Vector< Double > &zReturned, const MPosition &mRefLocation, const Vector< Double > &xIn, const Vector< Double > &yIn, const Vector< Double > &zIn)
void blockage(Double &fraction1, Double &fraction2, const Vector< Double > &uvw, const Double diam1, const Double diam2)
Returns the fractional blockage of one antenna by another We will want to put this somewhere else eve...
void observe(const String &sourceName, const String &spWindowName, const Quantity &qStartTime, const Quantity &qStopTime, const Bool add_observation=True, const Bool state_sig=True, const Bool state_ref=True, const double &state_cal=0., const double &state_load=0., const unsigned int state_sub_scan=1, const String &state_obs_mode="OBSERVE_TARGET.ON_SOURCE", const String &observername="CASA simulator", const String &projectname="CASA simulation")
void initFields(const String &sourceName, const MDirection &sourceDirection, const String &calCode)
set the observed fields
TiledDataStManAccessor flagAcc_p
void initFeeds(const String &mode)
set the Feeds; brain dead version
void setFractionBlockageLimit(const Double fraclimit)
TiledDataStManAccessor sigmaAcc_p
void local2global(Vector< Double > &xReturned, Vector< Double > &yReturned, Vector< Double > &zReturned, const MPosition &mRefLocation, const Vector< Double > &xIn, const Vector< Double > &yIn, const Vector< Double > &zIn)
Quantity qIntegrationTime_p
void setElevationLimit(const Quantity &ellimit)
NewMSSimulator(MeasurementSet &)
Constructor from existing MS.
NewMSSimulator & operator=(const NewMSSimulator &)
Assignment.
NewMSSimulator(const String &)
Constructor from name only.
Bool calcAntUVW(MEpoch &epoch, MDirection &refdir, Matrix< Double > &uvwAnt)
NewMSSimulator(const NewMSSimulator &mss)
Copy constructor - for completeness only.
TiledDataStManAccessor scratchDataAcc_p
bool getSpWindows(Int &nSpw, Vector< String > &spWindowName, Vector< Int > &nChan, Vector< Quantity > &startFreq, Vector< Quantity > &freqInc, Vector< String > &stokesString)
void setAutoCorrelationWt(const Float autocorrwt)
Double fractionBlockageLimit_p
std::shared_ptr< MeasurementSet > ms_p
bool getFeedMode(String &mode)
bool getFields(Int &nField, Vector< String > &sourceName, Vector< MDirection > &sourceDirection, Vector< String > &calCode)
std::shared_ptr< MeasurementSet > getMs() const
void observe(const Vector< String > &sourceNames, const String &spWindowName, const Vector< Quantity > &qStartTimes, const Vector< Quantity > &qStopTimes, const Vector< MDirection > &directions, const Bool add_observation=True, const Bool state_sig=True, const Bool state_ref=True, const double &state_cal=0., const double &state_load=0., const unsigned int state_sub_scan=1, const String &state_obs_mode="OBSERVE_TARGET.ON_SOURCE", const String &observername="CASA simulator", const String &projectname="CASA simulation")
String formatTime(const Double)
void initAnt(const String &telname, const Vector< Double > &x, const Vector< Double > &y, const Vector< Double > &z, const Vector< Double > &dishDiameter, const Vector< Double > &offset, const Vector< String > &mount, const Vector< String > &name, const Vector< String > &padname, const String &coordsystem, const MPosition &mRefLocation)
set the antenna and array data.
TiledDataStManAccessor dataAcc_p
void initFeeds(const String &mode, const Vector< Double > &x, const Vector< Double > &y, const Vector< String > &pol)
set the Feeds; Smart version
String formatDirection(const MDirection &)
Quantity elevationLimit_p
void initSpWindows(const String &spWindowName, const Int &nChan, const Quantity &startFreq, const Quantity &freqInc, const Quantity &freqRes, const MFrequency::Types &freqType, const String &stokesString)
set the spectral windows information
void addHyperCubes(const Int id, const Int nBase, const Int nChan, const Int nCorr)
bool getAnt(String &telescope, Int &nAnt, Matrix< Double > *antXYZ, Vector< Double > &antDiam, Vector< Double > &offset, Vector< String > &mount, Vector< String > &name, Vector< String > &padname, String &coordsystem, MPosition &mRefLocation)
get the info back
Float autoCorrelationWt_p
void settimes(const Quantity &qIntegrationTime, const Bool useHourAngles, const MEpoch &mRefTime)
NewMSSimulator()
Prevent use of default constructor.
void setMaxData(const Double maxData=2e9)
Set maximum amount of data (bytes) to be written into any one scratch column hypercube.
String: the storage and methods of handling collections of characters.
For temporary backward namespace compatibility, use casa as alias for casacore.
int offset(int, int) const
compute a linear offset from array indicies
String name() const
Return the name of the field.
bool Bool
Define the standard types used by Casacore.
Quantum< Double > Quantity