Changeset 3447 in Sophya
- Timestamp:
- Jan 31, 2008, 7:11:53 PM (18 years ago)
- Location:
- trunk/SophyaExt/FitsIOServer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fiosinit.cc
r3171 r3447 40 40 FitsManager::RegisterHandler(new FitsArrayHandler<int_2> , 1, "TArray<int_2>"); 41 41 FitsManager::RegisterHandler(new FitsArrayHandler<int_4> , 1, "TArray<int_4> "); 42 #ifdef TLONGLONG 43 FitsManager::RegisterHandler(new FitsArrayHandler<int_8> , 1, "TArray<int_8> "); 44 #endif 42 45 FitsManager::RegisterHandler(new FitsArrayHandler<r_4> , 1, "TArray<r_4>"); 43 46 FitsManager::RegisterHandler(new FitsArrayHandler< r_8 > , 1, "TArray<r_8>"); -
trunk/SophyaExt/FitsIOServer/fitsinoutfile.cc
r3167 r3447 370 370 return bitpix; 371 371 } 372 372 /*-- Methode --*/ 373 /*! 374 See cfitsio function fits_set_bscale() for more information 375 Changes the BSCALE/BZERO values for read/write operations on the 376 primary HDU, without changing the keyword values in the fits header 377 */ 378 void FitsInOutFile::SetBScaleBZero(double bscale, double bzero) 379 { 380 int status = 0; 381 fits_set_bscale(fptr_, bscale, bzero, &status); 382 FitsCheckStatus(status, "FitsInOutFile::SetBScaleBZero() Error: "); 383 } 373 384 /*-- Methode --*/ 374 385 LONGLONG FitsInOutFile::GetNbRows() const -
trunk/SophyaExt/FitsIOServer/fitsinoutfile.h
r3167 r3447 37 37 static int ImageType(int_2 d) { return SHORT_IMG; } 38 38 static int ImageType(int_4 d) { return LONG_IMG; } 39 #ifdef LONGLONGIMG 40 static int ImageType(int_8 d) { return LONGLONG_IMG; } 41 #else 42 static int ImageType(int_8 d) 43 { throw FitsIOException("FitsImageType: Unsupported data type int_8"); } 44 #endif 45 39 46 static int ImageType(r_4 d) { return FLOAT_IMG; } 40 47 static int ImageType(r_8 d) { return DOUBLE_IMG; } … … 121 128 int GetImageHDUInfo(int& naxis, LONGLONG* naxes) const; 122 129 130 //! Change BSCALE/BZERO when reading/writing primary HDU 131 void SetBScaleBZero(double bscale=1., double bzero=0.); 132 123 133 //---- BINARY_TBL or ASCII_TBL 124 134 //! Return number of rows in a table HDU
Note:
See TracChangeset
for help on using the changeset viewer.