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/psastroAstromGuess.c

    r23989 r31333  
    161161                    psastroPlotRawstars (rawstars, fpa, chip, recipe);
    162162                }
     163
     164                // Next if we are using a different set of stars for grid search fill out their pmAstromObjs
     165                psArray *grid_rawstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.GRID.RAWSTARS");
     166                if (grid_rawstars == NULL || grid_rawstars == rawstars) { continue; }
     167
     168                for (int i = 0; i < grid_rawstars->n; i++) {
     169                    pmAstromObj *raw = grid_rawstars->data[i];
     170
     171                    psPlaneTransformApply (raw->FP, chip->toFPA, raw->chip);
     172                    psPlaneTransformApply (raw->TP, fpa->toTPA, raw->FP);
     173                    psDeproject (raw->sky, raw->TP, fpa->toSky);
     174
     175                    // rationalize ra to sky range centered on boresite
     176                    while (raw->sky->r < RAminSky) raw->sky->r += 2.0*M_PI;
     177                    while (raw->sky->r > RAmaxSky) raw->sky->r -= 2.0*M_PI;
     178
     179                    RAmin = PS_MIN (raw->sky->r, RAmin);
     180                    RAmax = PS_MAX (raw->sky->r, RAmax);
     181
     182                    DECmin = PS_MIN (raw->sky->d, DECmin);
     183                    DECmax = PS_MAX (raw->sky->d, DECmax);
     184                }
     185                // XXX: should we plot grid_rawstars?
    163186            }
    164187        }
Note: See TracChangeset for help on using the changeset viewer.