Changeset 2791 in Sophya
- Timestamp:
- Jun 1, 2005, 11:41:07 AM (20 years ago)
- Location:
- trunk/SophyaExt/FitsIOServer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fabtcolread.cc
r2789 r2791 920 920 /*! Constructor by default */ 921 921 FitsABTColRead::FitsABTColRead() 922 : FitsABTColRd() 922 923 { 923 924 } … … 943 944 944 945 /////////////////////////////////////////////////////////////////// 946 /////////////////////////////////////////////////////////////////// 947 /////////////////////////////////////////////////////////////////// 948 /////////////////////////////////////////////////////////////////// 949 945 950 //! Class for reading a 2D image from a FITS file 946 951 … … 1194 1199 return Naxis[0]*Naxis[1]; 1195 1200 } 1201 1202 /////////////////////////////////////////////////////////////////// 1203 /////////////////////////////////////////////////////////////////// 1204 /////////////////////////////////////////////////////////////////// 1205 /////////////////////////////////////////////////////////////////// 1206 1207 //! Class for reading a 2D image from a FITS file 1208 1209 /*! 1210 \class SOPHYA::FitsImg2DRead 1211 \ingroup FitsIOServer 1212 Class for reading a 2D image from a FITS file 1213 */ 1214 1215 ////////////////////////////////////////////////////////////// 1216 /*! 1217 Constructor. 1218 \param fname : name of the FITS file 1219 \param ihdu : number of the HDU where the image is. 1220 \param lp : debug level 1221 \verbatim 1222 - if ihdu<=0 first IMAGE hdu is taken 1223 - if ihdu>nhdu ihdu is set to nhdu 1224 \endverbatim 1225 \warning ihdu = [1,nhdu] 1226 */ 1227 FitsImg2DRead::FitsImg2DRead(string fname,int ihdu,int lp) 1228 : FitsImg2DRd(new FitsOpenFile(fname),ihdu,lp) 1229 { 1230 } 1231 1232 /*! Constructor. see below */ 1233 FitsImg2DRead::FitsImg2DRead(const char * cfname,int ihdu,int lp) 1234 : FitsImg2DRd(new FitsOpenFile(cfname),ihdu,lp) 1235 { 1236 } 1237 1238 /*! Constructor by default */ 1239 FitsImg2DRead::FitsImg2DRead() 1240 : FitsImg2DRd() 1241 { 1242 } 1243 1244 /*! Constructor by copy */ 1245 FitsImg2DRead::FitsImg2DRead(FitsImg2DRead& fimg) 1246 { 1247 // --- ATTENTION --- 1248 // FitsImg2DRead ferme le fichier FITS: il faut dupliquer le FitsOpenFile 1249 FitsOpenFile* fof = new FitsOpenFile(*fimg.GetFitsOpenFile()); 1250 Init(fof,fimg.HDU(),fimg.DbgLevel); 1251 } 1252 1253 /*! Destructor. */ 1254 FitsImg2DRead::~FitsImg2DRead() 1255 { 1256 // On detruit le FitsOpenFile, cad qu'on ferme (fits_file_close) le fichier FITS 1257 if(FitsOF!=NULL) delete FitsOF; 1258 } -
trunk/SophyaExt/FitsIOServer/fabtcolread.h
r2591 r2791 232 232 }; 233 233 234 /////////////////////////////////////////////////////////////////// 235 //! Class for reading a 2D image from a FITS file 236 class FitsImg2DRead : public FitsImg2DRd { 237 public: 238 FitsImg2DRead(string fname,int ihdu=0,int lp=0); 239 FitsImg2DRead(const char *cfname,int ihdu=0,int lp=0); 240 FitsImg2DRead(FitsImg2DRead& fbt); 241 FitsImg2DRead(); 242 virtual ~FitsImg2DRead(); 243 }; 244 234 245 } // namespace SOPHYA 235 246 #endif /* FABTCOLREAD_H_SEEN */
Note:
See TracChangeset
for help on using the changeset viewer.