IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16789


Ignore:
Timestamp:
Mar 4, 2008, 11:57:28 AM (18 years ago)
Author:
eugene
Message:

init image values to zero; correctly set TRATE if not defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080223/Ohana/src/addstar/src/ReadImageHeader.c

    r16698 r16789  
    88  double tmp, sec, Cerror, ZeroPt;
    99  char *c, photname[64], line[80];
     10
     11  // zero out the entire image structure
     12  memset (image, 0, sizeof(Image));
    1013
    1114  /* get astrometry information */
     
    132135
    133136  tmp = 0;
    134   gfits_scan (header, "TRATE",   "%lf", 1, &tmp);
    135   image[0].trate = 10000 * tmp;
     137  if (gfits_scan (header, "TRATE",   "%lf", 1, &tmp)) {
     138    image[0].trate = 10000 * tmp;
     139  } else {
     140    image[0].trate = 0.0;
     141  }
    136142
    137143  image[0].secz = NAN;
Note: See TracChangeset for help on using the changeset viewer.