IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41488 for trunk


Ignore:
Timestamp:
Feb 4, 2021, 2:07:18 PM (5 years ago)
Author:
eugene
Message:

add option OVERLAP_MAX_CERROR to eliminate poor images

Location:
trunk/Ohana/src/getstar
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/getstar/include/dvoImageOverlaps.h

    r39998 r41488  
    2222int ACCEPT_ASTROM;
    2323
     24double MAX_CERROR;
     25
    2426int  args_overlaps       PROTO((int argc, char **argv));
    2527int  ConfigInit_overlaps PROTO((int *argc, char **argv));
  • trunk/Ohana/src/getstar/src/ConfigInit_overlaps.c

    r39998 r41488  
    4444  if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
    4545
     46  MAX_CERROR = 0.5; // arcseconds
     47  ScanConfig (config, "OVERLAPS_MAX_CERROR",     "%lf", 0, &MAX_CERROR);
     48
    4649  free (config);
    4750  free (file);
  • trunk/Ohana/src/getstar/src/MatchImages.c

    r38986 r41488  
    1919  if (!WITH_PHU && !strcmp (&image[0].coords.ctype[4], "-DIS")) return NULL;
    2020  if ( SOLO_PHU &&  strcmp (&image[0].coords.ctype[4], "-DIS")) return NULL;
     21
     22  // exclude chips / images with errors larger than OVERLAP_MAX_CERROR:
     23  if (fabs(MAX_CERROR) > 1e-6) {
     24    if (image[0].cerror * 0.02 > MAX_CERROR) return NULL;
     25  }
    2126
    2227  /* project onto rectilinear grid with 1 arcsec pixels */
  • trunk/Ohana/src/getstar/src/ReadImageHeader.c

    r40291 r41488  
    9393  }
    9494   
    95   /* CERROR in data file is in arcsec */
     95  /* CERROR in data file is in arcsec, image structure uses units of 20 mas */
    9696  if (!gfits_scan (header, "CERROR",   "%lf", 1, &tmp)) tmp = 1.0;
    9797  image[0].cerror = tmp * 50.0;
Note: See TracChangeset for help on using the changeset viewer.