Changeset 31333 for trunk/psastro/src/psastroAstromGuess.c
- Timestamp:
- Apr 21, 2011, 10:59:14 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroAstromGuess.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroAstromGuess.c
r23989 r31333 161 161 psastroPlotRawstars (rawstars, fpa, chip, recipe); 162 162 } 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? 163 186 } 164 187 }
Note:
See TracChangeset
for help on using the changeset viewer.
