IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10815


Ignore:
Timestamp:
Dec 20, 2006, 6:44:45 AM (20 years ago)
Author:
eugene
Message:

mosaic astrometry work

Location:
trunk/psastro/src
Files:
2 edited

Legend:

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

    r10613 r10815  
    2828
    2929    // XXX no input distortion model yet; existing fpa distortion is identity: replace it
     30    // XXX make this a test if these are NULL; the load step can NULL them if nothing is loaded
     31    // XXX if we have an input distortion model, the gradient is measuring the error rel to that model
     32    // XXX how does this couple to the individual chip fits?
    3033    psFree (fpa->toTPA);
    3134    psFree (fpa->fromTPA);
  • trunk/psastro/src/psastroMosaicRescaleChips.c

    r9574 r10815  
    11# include "psastro.h"
     2
     3// XXX what is this doing?
     4// shouldn't it be doing toFPA -> fromFPA
    25
    36bool psastroMosaicRescaleChips (pmFPA *fpa) {
     
    710
    811    // this loop selects the matched stars for all chips
     12
     13    // psRegion region = psMetadataLookupXXX (chip->concepts, "CHIP.TRIMSEC");
     14    // psRegion region = psRegionSet (0, 4000, 0, 4000);
     15    // chip->fromFPA = psPlaneTransformInvert(NULL, toFPA, region, 50);
     16
    917    while ((chip = pmFPAviewNextChip (view, fpa, 1)) != NULL) {
    1018        psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    1119        if (!chip->process || !chip->file_exists) { continue; }
    12        
    13         psFree (chip->toFPA);
    14         chip->toFPA = p_psPlaneTransformLinearInvert(chip->fromFPA);
     20
     21        // XXX make '50' be a fraction of the chip size?
     22        chip->fromFPA = psPlaneTransformInvert(chip->fromFPA, chip->toFPA, region, 50);
    1523    }
    1624    psFree (view);
Note: See TracChangeset for help on using the changeset viewer.