IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 21, 2011, 10:59:14 AM (15 years ago)
Author:
bills
Message:

optionally use a separate list of stars with different magnitude range for grid search. This is used to
work around the bright star astrometry problem that fouls up the STS astrometry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroChipAstrom.c

    r27639 r31333  
    6060
    6161                // select the raw objects for this readout
     62                psArray *gridrawstars = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.GRID.RAWSTARS.SUBSET");
     63                if (gridrawstars == NULL) {
     64                    gridrawstars = rawstars;
     65                } else {
     66                    // the absolute minimum number of stars is 4 (for order = 1)
     67                    if (gridrawstars->n < 4) {
     68                        readout->data_exists = false;
     69                        psLogMsg ("psastro", 3, "insufficient gird rawstars (%ld)", gridrawstars->n);
     70                        continue;
     71                    }
     72                }
     73
    6274                psArray *refstars = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.REFSTARS.SUBSET");
    6375                if (refstars == NULL) { continue; }
     
    8092
    8193                // XXX update the header with info to reflect the failure
    82                 if (!psastroOneChipGrid (fpa, chip, refstars, rawstars, recipe, updates)) {
     94                if (!psastroOneChipGrid (fpa, chip, refstars, gridrawstars, recipe, updates)) {
    8395                    readout->data_exists = false;
    8496                    psLogMsg ("psastro", 3, "failed to find a solution\n");
Note: See TracChangeset for help on using the changeset viewer.