Changeset 5674
- Timestamp:
- Dec 5, 2005, 10:49:30 AM (20 years ago)
- Location:
- trunk/psModules/src/astrom
- Files:
-
- 2 added
- 2 edited
-
Makefile.am (modified) (1 diff)
-
pmAstrometry.c (modified) (14 diffs)
-
pmAstrometryObjects.c (added)
-
pmAstrometryObjects.h (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/Makefile.am
r5170 r5674 3 3 libpsmoduleastrom_la_CPPFLAGS = $(SRCINC) $(PSMODULE_CFLAGS) 4 4 libpsmoduleastrom_la_LDFLAGS = -release $(PACKAGE_VERSION) 5 libpsmoduleastrom_la_SOURCES = pmAstrometry.c 5 libpsmoduleastrom_la_SOURCES = \ 6 pmAstrometry.c \ 7 pmAstrometryObjects.c 6 8 7 9 psmoduleincludedir = $(includedir) 8 10 psmoduleinclude_HEADERS = \ 9 pmAstrometry.h 11 pmAstrometry.h \ 12 pmAstrometryObjects.h -
trunk/psModules/src/astrom/pmAstrometry.c
r5609 r5674 10 10 * XXX: We should review the extent of the warning messages on these functions 11 11 * when the transformations are not successful. 12 * 13 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-11-27 19:28:56 $ 12 * 13 * XXX: Should we implement non-linear cell->chip transforms? 14 * 15 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-12-05 20:49:30 $ 15 17 * 16 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 23 25 #include <math.h> 24 26 #include "pslib.h" 25 #include "psDB.h"26 27 #include "pmAstrometry.h" 27 28 … … 34 35 XXX: Macro this for speed. 35 36 *****************************************************************************/ 36 static psS32 checkValidImageCoords(double x, 37 double y, 38 psImage* tmpImage) 37 static psS32 checkValidImageCoords( 38 double x, 39 double y, 40 psImage* tmpImage) 39 41 { 40 42 PS_ASSERT_IMAGE_NON_NULL(tmpImage, 0); … … 51 53 /****************************************************************************** 52 54 *****************************************************************************/ 55 #define PS_FREE_HIERARCHY 1 53 56 static void readoutFree(pmReadout *readout) 54 57 { … … 77 80 } 78 81 79 #define PS_FREE_HIERARCHY 180 82 static void cellFree(pmCell *cell) 81 83 { … … 255 257 } 256 258 257 bool cellCheckParents(pmCell *cell)259 static psBool cellCheckParents(pmCell *cell) 258 260 { 259 261 if (cell == NULL) { … … 273 275 } 274 276 275 bool chipCheckParents(pmChip *chip)277 static psBool chipCheckParents(pmChip *chip) 276 278 { 277 279 if (chip == NULL) { … … 293 295 } 294 296 295 bool pmFPACheckParents(pmFPA *fpa)297 psBool pmFPACheckParents(pmFPA *fpa) 296 298 { 297 299 if (fpa == NULL) { … … 617 619 618 620 /***************************************************************************** 619 XXX: What about units for the (x,y) coords? 620 621 XXX: This has not been tested. 622 *****************************************************************************/ 621 *****************************************************************************/ 623 622 psSphere* pmCoordTPToSky( 624 623 psSphere* outSphere, … … 635 634 return(rc); 636 635 } 636 637 637 /***************************************************************************** 638 XXX: What about units for the (x,y) coords?639 640 XXX: This has not been tested.641 638 *****************************************************************************/ 642 639 psPlane* pmCoordSkyToTP( … … 655 652 } 656 653 657 658 // XXX: Should we check return codes of intermediate transforms? 659 // XXX: This has not been tested. 654 /***************************************************************************** 655 *****************************************************************************/ 660 656 psSphere* pmCoordCellToSky( 661 657 psSphere* skyCoord, … … 700 696 } 701 697 698 /***************************************************************************** 699 *****************************************************************************/ 702 700 psPlane* pmCoordSkyToCell( 703 701 psPlane* cellCoord, … … 749 747 } 750 748 751 / / XXX: This has not been tested.752 // XXX: Verify the plane coords to sphere coord code. 749 /***************************************************************************** 750 *****************************************************************************/ 753 751 psSphere* pmCoordCellToSkyQuick( 754 752 psSphere* outSphere, … … 778 776 779 777 /***************************************************************************** 780 XXX: What about units for the (x,y) coords?781 782 XXX: This has not been tested.783 784 XXX: Verify the plane coords to sphere coord code.785 778 *****************************************************************************/ 786 779 psPlane* pmCoordSkyToCellQuick(
Note:
See TracChangeset
for help on using the changeset viewer.
