IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10814


Ignore:
Timestamp:
Dec 20, 2006, 6:37:55 AM (20 years ago)
Author:
magnier
Message:

bilevel mosaic work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryWCS.c

    r10781 r10814  
    77 *  @author EAM, IfA
    88 *
    9  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-12-17 09:46:09 $
     9 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-12-20 16:37:55 $
    1111 *
    1212 *  Copyright 2006 Institute for Astronomy, University of Hawaii
     
    442442    // XXX this needs to perform the full (non-linear) inversion
    443443    // XXX we need to pull the region from the chip metadata
     444    // is chip trimsec defined?  do we need to ensure the
     445    // XXX should this function be defined for the CELL, not the CHIP?
     446    // psRegion region = psMetadataLookupXXX (chip->concepts, "CHIP.TRIMSEC");
    444447    psRegion region = psRegionSet (0, 4000, 0, 4000);
    445448    chip->fromFPA = psPlaneTransformInvert(NULL, toFPA, region, 50);
     
    632635// convert toFPA / toSky components to traditional WCS
    633636// plateScale is nominal physical scale on tangent plane (microns / arcsecond)
    634 bool pmAstromWriteBilevelChip (psPlaneTransform *toFPA, psMetadata *header, double plateScale)
    635 {
     637bool pmAstromWriteBilevelChip (psMetadata *header, const pmFPA *fpa, const pmChip *chip, float tol)
     638{
     639    pmAstromWCS *wcs = pmAstromWCSBilevelChipFromFPA (fpa, chip, tol);
     640
     641    pmAstromWCStoHeader (header, wcs);
     642
     643    psFree (wcs);
     644    return true;
     645}
     646
     647
     648// convert toFPA / toSky components to traditional WCS
     649// plateScale is nominal physical scale on tangent plane (microns / arcsecond)
     650bool pmAstromWriteBilevelMosaic (psMetadata *header, const pmFPA *fpa, float tol)
     651{
     652    pmAstromWCS *wcs = pmAstromWCSBilevelMosaicFromFPA (fpa, tol);
     653
     654    pmAstromWCStoHeader (header, wcs);
     655
     656    psFree (wcs);
     657    return true;
     658}
     659
     660pmAstromWCS *pmAstromWCSBilevelChipFromFPA (pmFPA *fpa, float tol)
     661{
     662
     663    // conv
    636664
    637665    psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE1", PS_META_REPLACE, "", "RA---WRP");
Note: See TracChangeset for help on using the changeset viewer.