IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2006, 7:02:16 AM (20 years ago)
Author:
eugene
Message:

substantial updates

File:
1 edited

Legend:

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

    r7014 r7332  
    4141
    4242                // 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");
    4444                if (rawstars == NULL) { continue; }
    4545
    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; }
    4849
    49                 // select the reference objects within range of this readout
    50                 // project the reference objects to this chip
    51                 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 Megacam
    60                     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                 }
    6750                psastroOneChip (fpa, chip, refstars, rawstars, recipe);
    68                 psFree (refstars);
    6951
    7052                // read WCS data from the corresponding header
Note: See TracChangeset for help on using the changeset viewer.