IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 6, 2007, 3:42:40 PM (19 years ago)
Author:
eugene
Message:

handle i/o errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/matrix/F_matrix.c

    r15487 r15751  
    2424  return (size);
    2525}
     26
     27int gfits_data_min_size (Header *header) {
     28 
     29  int i, size;
     30
     31  if (header[0].Naxes == 0) return (0);
     32
     33  size = abs(header[0].bitpix / 8);
     34
     35  for (i = 0; i < header[0].Naxes; i++)
     36    size *= header[0].Naxis[i];
     37
     38  // XXX do I multiply this times gcount?
     39  size += header[0].pcount;
     40
     41  return (size);
     42}
Note: See TracChangeset for help on using the changeset viewer.