Changeset 3167 in Sophya for trunk/SophyaExt/FitsIOServer/fitsblkrw.h
- Timestamp:
- Feb 2, 2007, 6:46:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsblkrw.h
r2846 r3167 17 17 //! Write image HDU data to a fits file 18 18 static void WriteImageData(FitsInOutFile& fios, const T * d, size_t sz, 19 long* fpixel=NULL)19 LONGLONG * fpixel=NULL) 20 20 { 21 21 int status = 0; 22 longfpix[5] = {1,1,1,1,1};22 LONGLONG fpix[5] = {1,1,1,1,1}; 23 23 if (fpixel == NULL) fpixel = fpix; 24 24 T * ncd = const_cast<T *>(d); 25 fits_write_pix (fios.FitsPtr(), FitsTypes::DataType(d[0]), fpixel,25 fits_write_pixll(fios.FitsPtr(), FitsTypes::DataType(d[0]), fpixel, 26 26 sz, ncd, &status); 27 27 if ( status ) { … … 37 37 //! Read image HDU data from a fits file 38 38 static void ReadImageData(FitsInOutFile& fios, T * d, size_t sz, 39 long* fpixel=NULL)39 LONGLONG * fpixel=NULL) 40 40 { 41 41 int status = 0; 42 longfpix[5] = {1,1,1,1,1};42 LONGLONG fpix[5] = {1,1,1,1,1}; 43 43 if (fpixel == NULL) fpixel = fpix; 44 44 int anynul = 0; 45 fits_read_pix (fios.FitsPtr(), FitsTypes::DataType(d[0]), fpixel,45 fits_read_pixll(fios.FitsPtr(), FitsTypes::DataType(d[0]), fpixel, 46 46 sz, NULL, d, &anynul, &status); 47 47 if ( status ) { … … 66 66 \param sz : number of data elements to be written 67 67 */ 68 static void WriteColumnData(FitsInOutFile& fios, int colnum, longfirstrow,69 longfirstelem, const T * d, size_t sz)68 static void WriteColumnData(FitsInOutFile& fios, int colnum, LONGLONG firstrow, 69 LONGLONG firstelem, const T * d, size_t sz) 70 70 { 71 71 int status = 0; … … 93 93 \param sz : number of data elements to be read 94 94 */ 95 static void ReadColumnData(FitsInOutFile& fios, int colnum, longfirstrow,96 longfirstelem, T * d, size_t sz)95 static void ReadColumnData(FitsInOutFile& fios, int colnum, LONGLONG firstrow, 96 LONGLONG firstelem, T * d, size_t sz) 97 97 { 98 98 int status = 0; … … 119 119 //! Write image HDU with string data type not supported (throws exception) 120 120 static void WriteImageData(FitsInOutFile& fios, const std::string * d, size_t sz, 121 long* fpixel=NULL)121 LONGLONG * fpixel=NULL) 122 122 { 123 123 throw FitsIOException( … … 126 126 //! Read image HDU with string data type not supported (throws exception) 127 127 static void ReadImageData(FitsInOutFile& fios, std::string * d, size_t sz, 128 long* fpixel=NULL)128 LONGLONG * fpixel=NULL) 129 129 { 130 130 throw FitsIOException( … … 133 133 134 134 //! Write character string data to binary/ascii HDU data in a fits file. 135 static void WriteColumnData(FitsInOutFile& fios, int colnum, longfirstrow,136 longfirstelem, const std::string * d, size_t sz)135 static void WriteColumnData(FitsInOutFile& fios, int colnum, LONGLONG firstrow, 136 LONGLONG firstelem, const std::string * d, size_t sz) 137 137 { 138 138 int status = 0; … … 163 163 164 164 //! Read character string data to binary/ascii HDU data in a fits file. 165 static void ReadColumnData(FitsInOutFile& fios, int colnum, longfirstrow,166 longfirstelem, std::string * d, size_t sz)165 static void ReadColumnData(FitsInOutFile& fios, int colnum, LONGLONG firstrow, 166 LONGLONG firstelem, std::string * d, size_t sz) 167 167 { 168 168 int status = 0;
Note:
See TracChangeset
for help on using the changeset viewer.