IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9367


Ignore:
Timestamp:
Oct 6, 2006, 3:00:08 PM (20 years ago)
Author:
eugene
Message:

fixed header interaction with pmSourceIO_CMP

Location:
trunk/psastro/src
Files:
3 edited

Legend:

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

    r8780 r9367  
    5252                if (refstars == NULL) { continue; }
    5353
    54                 psastroOneChip (fpa, chip, refstars, rawstars, recipe);
     54                // save WCS and analysis metadata in update header
     55                psMetadata *updates = psMetadataAlloc();
    5556
    56                 // read WCS data from the corresponding header
    57                 pmHDU *hdu = pmFPAviewThisHDU (view, fpa);
    58                 pmAstromWriteWCS (chip->toFPA, fpa->toSky, hdu->header, plateScale);
     57                psastroOneChip (fpa, chip, refstars, rawstars, recipe, updates);
     58                pmAstromWriteWCS (chip->toFPA, fpa->toSky, updates, plateScale);
     59                psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.HEADER",  PS_DATA_METADATA, "psastro header stats", updates);
    5960            }
    6061        }
  • trunk/psastro/src/psastroMosaicChipAstrom.c

    r8780 r9367  
    3636                if (match == NULL) { continue; }
    3737
    38                 pmAstromMatchFit (chip->toFPA, rawstars, refstars, match, recipe);
     38                // need to pass in an update header, sent in from above
     39                pmAstromMatchFit (chip->toFPA, rawstars, refstars, match, recipe, NULL);
    3940            }
    4041        }
  • trunk/psastro/src/psastroOneChip.c

    r8780 r9367  
    55# include "psastro.h"
    66
    7 bool psastroOneChip (pmFPA *fpa, pmChip *chip, psArray *refstars, psArray *rawstars, psMetadata *recipe) {
     7bool psastroOneChip (pmFPA *fpa, pmChip *chip, psArray *refstars, psArray *rawstars, psMetadata *recipe, psMetadata *updates) {
    88
    99    // bool status;
     
    3131
    3232    // improved fit for astrometric terms
    33     pmAstromMatchFit (chip->toFPA, rawstars, refstars, match, recipe);
     33    pmAstromMatchFit (chip->toFPA, rawstars, refstars, match, recipe, updates);
    3434    psastroUpdateChipToFPA (fpa, chip, rawstars, refstars);
    3535
Note: See TracChangeset for help on using the changeset viewer.