IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41431 for trunk


Ignore:
Timestamp:
Oct 22, 2020, 7:01:19 AM (6 years ago)
Author:
eugene
Message:

when reading just the header, set number of axes to zero

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/rd.c

    r38441 r41431  
    161161  // XXX for compressed data, we need to convert the header to the equivalent uncompressed version
    162162  if (JustHead) {
    163     // XXX what are we doing here exactly?
    164     buf[0].header.Naxes = 0;
     163    // set the number of pixels to zero:
     164    gfits_init_matrix (&buf[0].matrix);
    165165    ALLOCATE (buf[0].matrix.buffer, char, 1);
    166     buf[0].matrix.datasize = 0;
    167166    buf[0].bitpix = 16;
    168167    buf[0].bzero = 0;
    169168    buf[0].bscale = 1;
    170     buf[0].matrix.bitpix = 16;
    171     buf[0].matrix.bzero = 0;
    172     buf[0].matrix.bscale = 1;
    173169    buf[0].header.bitpix = 16;
    174170    buf[0].header.bzero = 0;
    175171    buf[0].header.bscale = 1;
     172    buf[0].header.Naxes = 0;
    176173    fclose (f);
    177174    return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.