Changeset 10814
- Timestamp:
- Dec 20, 2006, 6:37:55 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/astrom/pmAstrometryWCS.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryWCS.c
r10781 r10814 7 7 * @author EAM, IfA 8 8 * 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 $ 11 11 * 12 12 * Copyright 2006 Institute for Astronomy, University of Hawaii … … 442 442 // XXX this needs to perform the full (non-linear) inversion 443 443 // 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"); 444 447 psRegion region = psRegionSet (0, 4000, 0, 4000); 445 448 chip->fromFPA = psPlaneTransformInvert(NULL, toFPA, region, 50); … … 632 635 // convert toFPA / toSky components to traditional WCS 633 636 // plateScale is nominal physical scale on tangent plane (microns / arcsecond) 634 bool pmAstromWriteBilevelChip (psPlaneTransform *toFPA, psMetadata *header, double plateScale) 635 { 637 bool 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) 650 bool 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 660 pmAstromWCS *pmAstromWCSBilevelChipFromFPA (pmFPA *fpa, float tol) 661 { 662 663 // conv 636 664 637 665 psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE1", PS_META_REPLACE, "", "RA---WRP");
Note:
See TracChangeset
for help on using the changeset viewer.
