ImageMetaData.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef IMAGES_IMAGEMETADATA_H
00029 #define IMAGES_IMAGEMETADATA_H
00030
00031 #include <imageanalysis/ImageAnalysis/ImageMetaDataBase.h>
00032
00033 #include <images/Images/ImageInterface.h>
00034 #include <casa/aips.h>
00035
00036 namespace casa {
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077 class ImageMetaData : public ImageMetaDataBase {
00078
00079 public:
00080
00081 ImageMetaData(SPCIIF imagef);
00082 ImageMetaData(SPIIF imagef);
00083
00084 ImageMetaData(SPCIIC imagec);
00085 ImageMetaData(SPIIC imagec);
00086
00087 ~ImageMetaData() {}
00088
00089 Record toRecord(Bool verbose) const;
00090
00091
00092 Record summary(
00093 const String& doppler, const Bool list,
00094 const Bool pixelorder, const Bool verbose
00095 );
00096
00097 protected:
00098
00099 SPCIIF _getFloatImage() const { return _floatImage; }
00100
00101 SPCIIC _getComplexImage() const { return _complexImage; }
00102
00103 ImageMetaData() : ImageMetaDataBase(), _floatImage(), _complexImage() {}
00104
00105 const ImageInfo& _getInfo() const { return _info; }
00106
00107 const CoordinateSystem& _getCoords() const { return _csys; }
00108
00109 Vector<String> _getAxisNames() const;
00110
00111 Vector<String> _getAxisUnits() const;
00112
00113 GaussianBeam _getBeam() const;
00114
00115 String _getBrightnessUnit() const;
00116
00117 String _getImType() const;
00118
00119 vector<Quantity> _getIncrements() const;
00120
00121 Vector<String> _getMasks() const;
00122
00123 String _getObject() const;
00124
00125 String _getEquinox() const;
00126
00127 MEpoch _getObsDate() const;
00128
00129 String _getObserver() const;
00130
00131 String _getProjection() const;
00132
00133 String _getRefFreqType() const;
00134
00135 Vector<Double> _getRefPixel() const;
00136
00137 Vector<Quantity> _getRefValue() const;
00138
00139 Quantity _getRestFrequency() const;
00140
00141 Record _getStatistics() const;
00142
00143 String _getTelescope() const;
00144
00145 Vector<String> _getStokes() const;
00146
00147 template <class T> Record _summary(
00148 SPCIIT image, const String& doppler, const Bool list,
00149 const Bool pixelorder, const Bool verbose
00150 );
00151
00152 private:
00153
00154 SPCIIF _floatImage;
00155 SPCIIC _complexImage;
00156 const ImageInfo _info;
00157 const CoordinateSystem _csys;
00158
00159
00160
00161
00162 mutable Record _header;
00163 mutable String _bunit, _imtype, _object, _equinox,
00164 _projection, _observer, _telescope, _reffreqtype;
00165 mutable MEpoch _obsdate;
00166 mutable Quantity _restFreq;
00167 mutable GaussianBeam _beam;
00168 mutable Vector<String> _masks, _stokes;
00169 mutable Vector<String> _axisNames, _axisUnits;
00170 mutable Vector<Double> _refPixel;
00171 mutable vector<Quantity> _refVal, _increment;
00172 mutable Record _stats;
00173 };
00174
00175 }
00176
00177 #ifndef AIPS_NO_TEMPLATE_SRC
00178 #include <imageanalysis/ImageAnalysis/ImageMetaData.tcc>
00179 #endif //# AIPS_NO_TEMPLATE_SRC
00180
00181 #endif