IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

mosaic astrometry work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.