IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

compare against CERSTD instead of CERROR for bad chip test

Location:
branches/eam_branches/ipp-dev-20210817/Ohana/src/getstar/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-dev-20210817/Ohana/src/getstar/src/ConfigInit_overlaps.c

    r41488 r41875  
    4444  if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
    4545
    46   MAX_CERROR = 0.5; // arcseconds
     46  MAX_CERROR = NAN; // NAN means do not cut on this value
    4747  ScanConfig (config, "OVERLAPS_MAX_CERROR",     "%lf", 0, &MAX_CERROR);
    4848
  • branches/eam_branches/ipp-dev-20210817/Ohana/src/getstar/src/MatchImages.c

    r41488 r41875  
    2121
    2222  // exclude chips / images with errors larger than OVERLAP_MAX_CERROR:
    23   if (fabs(MAX_CERROR) > 1e-6) {
     23  // 2021.11.03 : MAX_CERROR is now compared to the header value CERSTD
     24  if (isfinite(MAX_CERROR)) {
    2425    if (image[0].cerror * 0.02 > MAX_CERROR) return NULL;
    2526  }
  • branches/eam_branches/ipp-dev-20210817/Ohana/src/getstar/src/ReadImageHeader.c

    r41488 r41875  
    9393  }
    9494   
    95   /* CERROR in data file is in arcsec, image structure uses units of 20 mas */
    96   if (!gfits_scan (header, "CERROR",   "%lf", 1, &tmp)) tmp = 1.0;
     95  // CERROR & CERSTD in data file are in arcsec, image structure uses units of 20 mas
     96  // if (!gfits_scan (header, "CERROR",   "%lf", 1, &tmp)) tmp = 1.0;
     97  // 2021.11.03 : getstar now checks CERSTD, not CERROR
     98  if (!gfits_scan (header, "CERSTD",   "%lf", 1, &tmp)) tmp = 1.0;
    9799  image[0].cerror = tmp * 50.0;
    98100 
Note: See TracChangeset for help on using the changeset viewer.