IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 10, 2008, 2:17:14 PM (18 years ago)
Author:
eugene
Message:

ippScripts/scripts/camera_exp.pl

File:
1 edited

Legend:

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

    r18325 r20652  
    44int rd (int argc, char **argv) {
    55 
    6   int i, N, status, plane, Nplane, extend, Nextend, Nskip, JustHead;
     6  int i, N, status, plane, Nplane, extend, Nextend, Nskip, JustHead, blank;
    77  int ccdsel, done, Nword, IsCompressed;
    88  char region[512], *ccdid, *filename;
     
    221221  buf[0].bzero  = buf[0].header.bzero;     /* store the original values */
    222222  buf[0].unsign = buf[0].header.unsign;
     223
    223224  gprint (GP_LOG, "read %d bytes from %s into buffer %s\n",
    224225           buf[0].header.size + buf[0].matrix.size, argv[2], argv[1]);
    225226
     227  blank = 0xffff;
     228  gfits_scan (&buf[0].header, "BLANK", "%d", 1, &blank);
     229
    226230  /** now - convert the matrix values to floats for internal use **/
    227   gfits_convert_format (&buf[0].header, &buf[0].matrix, -32, 1.0, 0.0, gfits_get_unsign_mode());
    228  
     231  gfits_convert_format (&buf[0].header, &buf[0].matrix, -32, 1.0, 0.0, blank, gfits_get_unsign_mode());
     232
    229233  return (TRUE);
    230234}
Note: See TracChangeset for help on using the changeset viewer.