Changeset 7332 for trunk/psastro/src/psastroChipAstrom.c
- Timestamp:
- Jun 4, 2006, 7:02:16 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroChipAstrom.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroChipAstrom.c
r7014 r7332 41 41 42 42 // select the raw objects for this readout 43 psArray *rawstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO. OBJECTS");43 psArray *rawstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.RAWSTARS"); 44 44 if (rawstars == NULL) { continue; } 45 45 46 // the refstars is a subset within range of this chip 47 psArray *refstars = psArrayAlloc (100); 46 // select the raw objects for this readout 47 psArray *refstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.REFSTARS"); 48 if (refstars == NULL) { continue; } 48 49 49 // select the reference objects within range of this readout50 // project the reference objects to this chip51 for (int i = 0; i < refs->n; i++) {52 pmAstromObj *ref = refs->data[i];53 54 p_psProject (ref->TP, ref->sky, fpa->projection);55 psPlaneDistortApply (ref->FP, fpa->fromTangentPlane, ref->TP, 0.0, 0.0);56 psPlaneTransformApply (ref->chip, chip->fromFPA, ref->FP);57 58 // XXX what is the X,Y range of the selected chip?59 // XXX for the moment, force these to be good for Megacam60 if (ref->chip->x < -500) continue;61 if (ref->chip->x > 2500) continue;62 if (ref->chip->y < -500) continue;63 if (ref->chip->y > 5000) continue;64 65 psArrayAdd (refstars, 100, ref);66 }67 50 psastroOneChip (fpa, chip, refstars, rawstars, recipe); 68 psFree (refstars);69 51 70 52 // read WCS data from the corresponding header
Note:
See TracChangeset
for help on using the changeset viewer.
