IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37017


Ignore:
Timestamp:
Jul 16, 2014, 2:27:50 PM (12 years ago)
Author:
eugene
Message:

FITS and Struct sizes are different for cmf-ps1-sv3, so need to use a special scale_storage function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140610/Ohana/src/libdvo/src/cmf-ps1-sv3.c

    r36932 r37017  
    131131}
    132132
     133int gfits_table_scale_storage_CMF_PS1_SV3 (CMF_PS1_SV3 *data, off_t Ndata) {
     134
     135  off_t i;
     136  for (i = 0; i < Ndata; i++) {
     137    data[i].detID   -= 0x80000000;
     138    data[i].flags   -= 0x80000000;
     139    data[i].flags2  -= 0x80000000;
     140    data[i].nFrames -= 0x8000;
     141  }
     142  return TRUE;
     143}
     144
    133145/*** add test of EXTNAME and header-defined columns? ***/
    134146/* return internal structure representation */
     
    152164    ftable[0].buffer = (char *) newdata;
    153165    data = (CMF_PS1_SV3 *) ftable[0].buffer;
    154     gfits_table_scale_data (ftable);
     166    gfits_table_scale_storage_CMF_PS1_SV3 (data, *Ndata);
    155167    if (swapped != NULL) *swapped = TRUE;
    156168  }
Note: See TracChangeset for help on using the changeset viewer.