Changeset 3128 in Sophya for trunk/SophyaExt/FitsIOServer/fabtcolread.h
- Timestamp:
- Jan 11, 2007, 7:07:52 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fabtcolread.h
r3114 r3128 43 43 void Print(void); 44 44 45 static double ReadKey(fitsfile *fitsptr,char *keyname); 46 static long ReadKeyL(fitsfile *fitsptr,char *keyname); 47 static string ReadKeyS(fitsfile *fitsptr,char *keyname); 45 static double ReadKey(fitsfile *fitsptr,char *keyname); 46 static long ReadKeyL(fitsfile *fitsptr,char *keyname); 47 static LONGLONG ReadKeyLL(fitsfile *fitsptr,char *keyname); 48 static string ReadKeyS(fitsfile *fitsptr,char *keyname); 48 49 static void printerror(int sta); 49 50 … … 72 73 void ChangeBuffer(long blen=100,long bsens=1); 73 74 74 double ReadKey(char *keyname); 75 long ReadKeyL(char *keyname); 76 string ReadKeyS(char *keyname); 77 78 double Read(long n,bool usebuffer=true); 79 80 long Read(long n1,long n2,TVector<uint_2>& data); 81 long Read(long n1,long n2,TVector<int_4>& data); 82 long Read(long n1,long n2,TVector<int_8>& data); 83 long Read(long n1,long n2,TVector<float>& data); 84 long Read(long n1,long n2,TVector<double>& data); 75 double ReadKey(char *keyname); 76 long ReadKeyL(char *keyname); 77 LONGLONG ReadKeyLL(char *keyname); 78 string ReadKeyS(char *keyname); 79 80 double Read(LONGLONG n,bool usebuffer=true); 81 82 LONGLONG Read(LONGLONG n1,LONGLONG n2,TVector<uint_2>& data); 83 LONGLONG Read(LONGLONG n1,LONGLONG n2,TVector<int_4>& data); 84 LONGLONG Read(LONGLONG n1,LONGLONG n2,TVector<int_8>& data); 85 LONGLONG Read(LONGLONG n1,LONGLONG n2,TVector<float>& data); 86 LONGLONG Read(LONGLONG n1,LONGLONG n2,TVector<double>& data); 85 87 86 88 //! return the value of the first row … … 91 93 {return Read(NBline-1,usebuffer);} 92 94 93 long FirstRow(double val1,double val2,longrowstart=-1);94 long LastRow(double val1,double val2,longrowstart=-1);95 LONGLONG FirstRow(double val1,double val2,LONGLONG rowstart=-1); 96 LONGLONG LastRow(double val1,double val2,LONGLONG rowstart=-1); 95 97 96 98 //! Set debug level … … 115 117 {if(FitsOF) return FitsOF->HDUType(); else return 0;} 116 118 //! Get the number of rows in the FITS HDU to be read 117 inline longGetNbLine(void) const {return NBline;}119 inline LONGLONG GetNbLine(void) const {return NBline;} 118 120 //! Get the number of columns in the FITS HDU to be read 119 121 inline int GetNbCol(void) const {return NBcol;} … … 148 150 string ColLabel,ColTUnit,ColTForm; 149 151 int ColNum,ColTypeCode,NBcol; 150 longNBline;152 LONGLONG NBline; 151 153 152 154 double NulVal; … … 154 156 long BuffLen, BuffSens; 155 157 156 unsigned longNFitsRead;158 LONGLONG NFitsRead; 157 159 FitsOpenFile* FitsOF; 158 longLineDeb, LineFin;160 LONGLONG LineDeb, LineFin; 159 161 double *Buffer; 160 162 long NBuffer; … … 188 190 virtual ~FitsImg2DRd(); 189 191 190 double ReadKey(char *keyname); 191 long ReadKeyL(char *keyname); 192 string ReadKeyS(char *keyname); 193 194 size_t Read(TMatrix<uint_2>& data); 195 size_t Read(TMatrix<int_4>& data); 196 size_t Read(TMatrix<int_8>& data); 197 size_t Read(TMatrix<float>& data); 198 size_t Read(TMatrix<double>& data); 192 double ReadKey(char *keyname); 193 long ReadKeyL(char *keyname); 194 LONGLONG ReadKeyLL(char *keyname); 195 string ReadKeyS(char *keyname); 196 197 LONGLONG Read(TMatrix<uint_2>& data); 198 LONGLONG Read(TMatrix<int_4>& data); 199 LONGLONG Read(TMatrix<int_8>& data); 200 LONGLONG Read(TMatrix<float>& data); 201 LONGLONG Read(TMatrix<double>& data); 199 202 200 203 //! Set debug level … … 216 219 {if(FitsOF) return FitsOF->HDUType(); else return 0;} 217 220 //! Get NAXIS1 218 inline longNaxis1(void) const {return Naxis[0];}221 inline LONGLONG Naxis1(void) const {return Naxis[0];} 219 222 //! Get NAXIS2 220 inline longNaxis2(void) const {return Naxis[1];}223 inline LONGLONG Naxis2(void) const {return Naxis[1];} 221 224 222 225 protected: 223 226 void Init(FitsOpenFile* fof,int ihdu,int lp); 224 227 225 longNaxis[2];228 LONGLONG Naxis[2]; 226 229 double NulVal; 227 230 unsigned short DbgLevel; … … 251 254 virtual ~FitsImg3DRd(); 252 255 253 double ReadKey(char *keyname); 254 long ReadKeyL(char *keyname); 255 string ReadKeyS(char *keyname); 256 257 size_t Read(TArray<uint_2>& data); 258 size_t Read(TArray<int_4>& data); 259 size_t Read(TArray<int_8>& data); 260 size_t Read(TArray<float>& data); 261 size_t Read(TArray<double>& data); 256 double ReadKey(char *keyname); 257 long ReadKeyL(char *keyname); 258 LONGLONG ReadKeyLL(char *keyname); 259 string ReadKeyS(char *keyname); 260 261 LONGLONG Read(TArray<uint_2>& data); 262 LONGLONG Read(TArray<int_4>& data); 263 LONGLONG Read(TArray<int_8>& data); 264 LONGLONG Read(TArray<float>& data); 265 LONGLONG Read(TArray<double>& data); 262 266 263 267 //! Set debug level … … 279 283 {if(FitsOF) return FitsOF->HDUType(); else return 0;} 280 284 //! Get NAXIS1 281 inline longNaxis1(void) const {return Naxis[0];}285 inline LONGLONG Naxis1(void) const {return Naxis[0];} 282 286 //! Get NAXIS2 283 inline longNaxis2(void) const {return Naxis[1];}287 inline LONGLONG Naxis2(void) const {return Naxis[1];} 284 288 //! Get NAXIS3 285 inline longNaxis3(void) const {return Naxis[2];}289 inline LONGLONG Naxis3(void) const {return Naxis[2];} 286 290 287 291 protected: 288 292 void Init(FitsOpenFile* fof,int ihdu,int lp); 289 293 290 longNaxis[3];294 LONGLONG Naxis[3]; 291 295 double NulVal; 292 296 unsigned short DbgLevel;
Note:
See TracChangeset
for help on using the changeset viewer.