IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41874


Ignore:
Timestamp:
Nov 3, 2021, 11:48:39 AM (5 years ago)
Author:
eugene
Message:

clean up CERROR test, add comments re: CERSTD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-dev-20210817/Ohana/src/addstar/src/ReadImageHeader.c

    r41341 r41874  
    7070  }
    7171
     72  // 2021.11.03 : consider replacing or supplementing CERROR with CERSTD
     73  // if (!gfits_scan (header, "CERROR",   "%lf", 1, &tmp)) tmp = 1.0;
     74
    7275  /* require Nastro > 0 unless or ACCEPT_ASTROM */
    73   Nastro = 0;
    74   gfits_scan (header, "NASTRO", "%d", 1, &Nastro);
    75   Cerror = 0;
     76  FWHM_X = FWHM_Y = Nastro = Cerror = 0;
     77
     78  gfits_scan (header, "NASTRO", "%d",  1, &Nastro);
    7679  gfits_scan (header, "CERROR", "%lf", 1, &Cerror);
    77   FWHM_X = FWHM_Y = 0;
    7880  gfits_scan (header, "FWHM_X", "%lf", 1, &FWHM_X);
    7981  gfits_scan (header, "FWHM_Y", "%lf", 1, &FWHM_Y);
     82
    8083  if (((Nastro == 0) || (Cerror > MAX_CERROR)) && !ACCEPT_ASTROM) {
    8184    fprintf (stderr, "bad astrometric solution in header\n");
     
    111114  }
    112115
    113   /* CERROR in data file is in arcsec */
    114   if (!gfits_scan (header, "CERROR",   "%lf", 1, &tmp)) tmp = 1.0;
    115   image[0].cerror = tmp * 50.0;
     116  /* CERROR / CERSTD in data file in arcsec; db field is units of 20 mas */
     117  image[0].cerror = 50.0 * Cerror;
    116118
    117119  /* get photcode from header */
Note: See TracChangeset for help on using the changeset viewer.