IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5674


Ignore:
Timestamp:
Dec 5, 2005, 10:49:30 AM (20 years ago)
Author:
gusciora
Message:

This is the first version of the astrometry objects code directly from IfA.

Location:
trunk/psModules/src/astrom
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/Makefile.am

    r5170 r5674  
    33libpsmoduleastrom_la_CPPFLAGS = $(SRCINC) $(PSMODULE_CFLAGS)
    44libpsmoduleastrom_la_LDFLAGS  = -release $(PACKAGE_VERSION)
    5 libpsmoduleastrom_la_SOURCES  = pmAstrometry.c
     5libpsmoduleastrom_la_SOURCES  = \
     6    pmAstrometry.c \
     7    pmAstrometryObjects.c
    68
    79psmoduleincludedir = $(includedir)
    810psmoduleinclude_HEADERS = \
    9   pmAstrometry.h
     11  pmAstrometry.h \
     12  pmAstrometryObjects.h
  • trunk/psModules/src/astrom/pmAstrometry.c

    r5609 r5674  
    1010* XXX: We should review the extent of the warning messages on these functions
    1111* 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 $
    1517*
    1618*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2325#include <math.h>
    2426#include "pslib.h"
    25 #include "psDB.h"
    2627#include "pmAstrometry.h"
    2728
     
    3435XXX: Macro this for speed.
    3536 *****************************************************************************/
    36 static psS32 checkValidImageCoords(double x,
    37                                    double y,
    38                                    psImage* tmpImage)
     37static psS32 checkValidImageCoords(
     38    double x,
     39    double y,
     40    psImage* tmpImage)
    3941{
    4042    PS_ASSERT_IMAGE_NON_NULL(tmpImage, 0);
     
    5153/******************************************************************************
    5254 *****************************************************************************/
     55#define PS_FREE_HIERARCHY 1
    5356static void readoutFree(pmReadout *readout)
    5457{
     
    7780}
    7881
    79 #define PS_FREE_HIERARCHY 1
    8082static void cellFree(pmCell *cell)
    8183{
     
    255257}
    256258
    257 bool cellCheckParents(pmCell *cell)
     259static psBool cellCheckParents(pmCell *cell)
    258260{
    259261    if (cell == NULL) {
     
    273275}
    274276
    275 bool chipCheckParents(pmChip *chip)
     277static psBool chipCheckParents(pmChip *chip)
    276278{
    277279    if (chip == NULL) {
     
    293295}
    294296
    295 bool pmFPACheckParents(pmFPA *fpa)
     297psBool pmFPACheckParents(pmFPA *fpa)
    296298{
    297299    if (fpa == NULL) {
     
    617619
    618620/*****************************************************************************
    619 XXX: What about units for the (x,y) coords?
    620  
    621 XXX: This has not been tested.
    622  *****************************************************************************/
     621  *****************************************************************************/
    623622psSphere* pmCoordTPToSky(
    624623    psSphere* outSphere,
     
    635634    return(rc);
    636635}
     636
    637637/*****************************************************************************
    638 XXX: What about units for the (x,y) coords?
    639  
    640 XXX: This has not been tested.
    641638 *****************************************************************************/
    642639psPlane* pmCoordSkyToTP(
     
    655652}
    656653
    657 
    658 // XXX: Should we check return codes of intermediate transforms?
    659 // XXX: This has not been tested.
     654/*****************************************************************************
     655 *****************************************************************************/
    660656psSphere* pmCoordCellToSky(
    661657    psSphere* skyCoord,
     
    700696}
    701697
     698/*****************************************************************************
     699 *****************************************************************************/
    702700psPlane* pmCoordSkyToCell(
    703701    psPlane* cellCoord,
     
    749747}
    750748
    751 // XXX: This has not been tested.
    752 // XXX: Verify the plane coords to sphere coord code.
     749/*****************************************************************************
     750 *****************************************************************************/
    753751psSphere* pmCoordCellToSkyQuick(
    754752    psSphere* outSphere,
     
    778776
    779777/*****************************************************************************
    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.
    785778 *****************************************************************************/
    786779psPlane* pmCoordSkyToCellQuick(
Note: See TracChangeset for help on using the changeset viewer.