IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 28, 2015, 8:27:00 PM (11 years ago)
Author:
eugene
Message:

adding code for table compress/uncompress; image compress works (but is not quite compatible with cfitsio for some reason and byteswap is broken)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/matrix/F_matrix.c

    r35164 r38329  
    2222    size = FT_RECORD_SIZE * Nrec;
    2323  }
     24
     25  return (size);
     26}
     27
     28off_t gfits_heap_start (Header *header) {
     29 
     30  int i;
     31  off_t size;
     32
     33  if (header[0].Naxes == 0) return (0);
     34
     35  size = abs(header[0].bitpix / 8);
     36
     37  for (i = 0; i < header[0].Naxes; i++)
     38    size *= header[0].Naxis[i];
    2439
    2540  return (size);
Note: See TracChangeset for help on using the changeset viewer.