28 #ifndef IMAGES_PVGENERATOR_H
29 #define IMAGES_PVGENERATOR_H
102 const std::pair<casacore::Double, casacore::Double>& start,
103 const std::pair<casacore::Double, casacore::Double>&
end
114 const std::pair<casacore::Double, casacore::Double>& center,
const casacore::Quantity& length,
155 std::vector<casacore::Coordinate::Type> v;
164 std::unique_ptr<std::vector<casacore::Double> >
_start,
_end;
181 SPIIF subImage,
const std::vector<Double>& start,
const std::vector<Double>& end,
190 Double paInRad,
Double halfwidth,
const std::vector<Double>& start,
191 const std::vector<Double>& end,
SPCIIF subImage,
Int xAxis,
Int yAxis
198 const std::vector<Double>& end,
Double paInDeg,
Int xAxis,
Int yAxis
A Measure: astronomical direction.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
void _checkRotatedImageSanity(SPCIIF rotated, const Vector< Double > &rotPixStart, const Vector< Double > &rotPixEnd, Int xAxis, Int yAxis, Double xdiff, Double ydiff) const
void _moveRefPixel(SPIIF subImage, CoordinateSystem &subCoords, const std::vector< Double > &start, const std::vector< Double > &end, Double paInDeg, Int xAxis, Int yAxis) const
SPCIIF _doRotate(SPIIF subImage, const std::vector< Double > &start, const std::vector< Double > &end, Int xAxis, Int yAxis, Double halfwidth, Double paInRad) const
SPIIF _dropDegen(SPIIF collapsed, Int collapsedAxis) const
void _checkWidth(const casacore::Int64 xShape, const casacore::Int64 yShape) const
SPIIF _doCollapse(Int &collapsedAxis, SPCIIF rotated, Int xAxis, Int yAxis, const Vector< Double > &rotPixStart, const Vector< Double > &rotPixEnd, Double halfwidth) const
casacore::String getClass() const
static casacore::String _pairToString(const std::pair< casacore::Double, casacore::Double > &p)
void setEndpoints(const std::pair< casacore::Double, casacore::Double > &start, const std::pair< casacore::Double, casacore::Double > &end)
set the end points of the slice in direction space.
const_iterator end() const
void _checkWidthSanity(Double paInRad, Double halfwidth, const std::vector< Double > &start, const std::vector< Double > &end, SPCIIF subImage, Int xAxis, Int yAxis) const
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
casacore::Quantity _increment() const
LatticeExprNode length(const LatticeExprNode &expr, const LatticeExprNode &axis)
2-argument function to get the length of an axis.
std::unique_ptr< std::vector< casacore::Double > > _start
std::shared_ptr< const casacore::ImageInterface< casacore::Float > > SPCIIF
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
static const casacore::String _class
CasacRegionManager::StokesControl _getStokesControl() const
virtual casacore::Bool _mustHaveSquareDirectionPixels() const
std::shared_ptr< casacore::ImageInterface< casacore::Float > > SPIIF
SPIIF generate() const
perform the collapse.
std::vector< casacore::Coordinate::Type > _getNecessaryCoordinates() const
Represents the minimum set of coordinates necessary for the task to function.
void setWidth(casacore::uInt width)
Set the number of pixels perpendicular to the slice for which averaging should occur.
String: the storage and methods of handling collections of characters.
PVGenerator()=delete
Top level interface for generating position-velocity images.
std::unique_ptr< std::vector< casacore::Double > > _end
Interconvert pixel and world coordinates.
void setOffsetUnit(const casacore::String &s)
set the unit to be used for the offset axis in the resulting image (from calling generate()).
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.