Ignore:
Timestamp:
Feb 2, 2007, 6:46:47 PM (19 years ago)
Author:
ansari
Message:

Passage a la version ll (LONGLONG) des routines fits , cmv+Reza 02/02/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsblkrw.h

    r2846 r3167  
    1717//! Write image HDU data to a fits file
    1818static void WriteImageData(FitsInOutFile& fios, const T * d, size_t sz,
    19                            long * fpixel=NULL)
     19                           LONGLONG * fpixel=NULL)
    2020{
    2121  int status = 0;
    22   long fpix[5] = {1,1,1,1,1};
     22  LONGLONG fpix[5] = {1,1,1,1,1};
    2323  if (fpixel == NULL) fpixel = fpix;
    2424  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,
    2626                 sz, ncd, &status);
    2727  if ( status ) {
     
    3737//! Read image HDU data from a fits file
    3838static void ReadImageData(FitsInOutFile& fios,  T * d, size_t sz,
    39                           long * fpixel=NULL)
     39                          LONGLONG * fpixel=NULL)
    4040{
    4141  int status = 0;
    42   long fpix[5] = {1,1,1,1,1};
     42  LONGLONG fpix[5] = {1,1,1,1,1};
    4343  if (fpixel == NULL) fpixel = fpix;
    4444  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,
    4646                 sz, NULL, d, &anynul, &status);
    4747  if ( status ) {
     
    6666  \param sz : number of data elements to be written
    6767*/
    68 static void WriteColumnData(FitsInOutFile& fios, int colnum, long firstrow,
    69                             long firstelem, const T * d, size_t sz)
     68static void WriteColumnData(FitsInOutFile& fios, int colnum, LONGLONG firstrow,
     69                            LONGLONG firstelem, const T * d, size_t sz)
    7070{
    7171  int status = 0;
     
    9393  \param sz : number of data elements to be read
    9494*/
    95 static void ReadColumnData(FitsInOutFile& fios, int colnum, long firstrow,
    96                             long firstelem, T * d, size_t sz)
     95static void ReadColumnData(FitsInOutFile& fios, int colnum, LONGLONG firstrow,
     96                           LONGLONG firstelem, T * d, size_t sz)
    9797{
    9898  int status = 0;
     
    119119//! Write image HDU with string data type not supported (throws exception)
    120120static void WriteImageData(FitsInOutFile& fios, const std::string * d, size_t sz,
    121                            long * fpixel=NULL)
     121                           LONGLONG * fpixel=NULL)
    122122{
    123123  throw FitsIOException(
     
    126126//! Read image HDU with string data type not supported (throws exception)
    127127static void ReadImageData(FitsInOutFile& fios,  std::string * d, size_t sz,
    128                           long * fpixel=NULL)
     128                          LONGLONG * fpixel=NULL)
    129129{
    130130  throw FitsIOException(
     
    133133
    134134//! Write character string data to binary/ascii HDU data in a fits file.
    135 static void WriteColumnData(FitsInOutFile& fios, int colnum, long firstrow,
    136                             long firstelem, const std::string * d, size_t sz)
     135static void WriteColumnData(FitsInOutFile& fios, int colnum, LONGLONG firstrow,
     136                            LONGLONG firstelem, const std::string * d, size_t sz)
    137137{
    138138  int status = 0;
     
    163163
    164164//! Read character string data to binary/ascii HDU data in a fits file.
    165 static void ReadColumnData(FitsInOutFile& fios, int colnum, long firstrow,
    166                            long firstelem, std::string * d, size_t sz)
     165static void ReadColumnData(FitsInOutFile& fios, int colnum, LONGLONG firstrow,
     166                           LONGLONG firstelem, std::string * d, size_t sz)
    167167{
    168168  int status = 0;
Note: See TracChangeset for help on using the changeset viewer.