IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 24, 2006, 3:56:53 PM (20 years ago)
Author:
eugene
Message:

finished up the mosaic astrometry code

File:
1 edited

Legend:

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

    r9574 r10830  
    11# include "psastro.h"
     2# define NONLIN_TOL 0.001 /* tolerance in pixels */
    23
    3 bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *recipe) {
     4bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *recipe, int iteration) {
    45
    56    pmChip *chip = NULL;
     
    2223                if (! readout->data_exists) { continue; }
    2324
    24                 // select the raw objects for this readout
    25                 psArray *rawstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.RAWSTARS");
    26                 if (rawstars == NULL) { continue; }
     25                // save WCS and analysis metadata in update header
     26                psMetadata *updates = psMetadataAlloc();
    2727
    28                 psArray *refstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.REFSTARS");
    29                 if (refstars == NULL) { continue; }
     28                psastroMosaicOneChip (chip, readout, recipe, updates, iteration);
    3029
    31                 psArray *match = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.MATCH");
    32                 if (match == NULL) { continue; }
    33 
    34                 // need to pass in an update header, sent in from above
    35                 pmAstromMatchFit (chip->toFPA, rawstars, refstars, match, recipe, NULL);
     30                pmAstromWriteBilevelChip (updates, chip, NONLIN_TOL);
     31                psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.HEADER",  PS_DATA_METADATA, "psastro header stats", updates);
     32                psFree (updates);
    3633            }
    3734        }
     
    3936    return true;
    4037}
     38
     39/* the iteration value may be 1 or 2.
     40 */
Note: See TracChangeset for help on using the changeset viewer.