IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1497


Ignore:
Timestamp:
Aug 11, 2004, 3:32:21 PM (22 years ago)
Author:
gusciora
Message:

...

Location:
trunk/psLib/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.c

    r1491 r1497  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-08-11 23:53:54 $
     12*  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-08-12 01:32:21 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7676
    7777// This function prototype has been modified since the SDRS.
    78 psSphereTransform* psSphereTransformAlloc(double NPlat, double Xo, double xo)
     78psSphereTransform* psSphereTransformAlloc(double NPlat,
     79        double Xo,
     80        double xo)
    7981{
    8082    psSphereTransform* tmp = (psSphereTransform* ) psAlloc(sizeof(psSphereTransform));
     
    9597// there are no typo's.
    9698
    97 psSphere* psSphereTransformApply(psSphere* out, const psSphereTransform* transform, const psSphere* coord)
     99psSphere* psSphereTransformApply(psSphere* out,
     100                                 const psSphereTransform* transform,
     101                                 const psSphere* coord)
    98102{
    99103    double sinY = 0.0;
     
    164168
    165169// This is some kind of arc tan function.
    166 float arg(float x, float y)
     170float arg(float x,
     171          float y)
    167172{
    168173    if (x > 0) {
     
    184189// XXX: Waiting for the definition of the PS_PROJ_PAR projection.
    185190// XXX: Waiting for the definition of the PS_PROJ_GLS projection.
    186 psPlane* psProject(const psSphere* coord, const psProjection* projection)
     191psPlane* psProject(const psSphere* coord,
     192                   const psProjection* projection)
    187193{
    188194    float R = 0.0;
     
    226232// XXX: Waiting for the definition of the PS_PROJ_PAR projection.
    227233// XXX: Waiting for the definition of the PS_PROJ_GLS projection.
    228 psSphere* psDeproject(const psPlane* coord, const psProjection* projection)
     234psSphere* psDeproject(const psPlane* coord,
     235                      const psProjection* projection)
    229236{
    230237    float R = 0.0;
     
    275282psSphere* psSphereGetOffset(const psSphere* restrict position1,
    276283                            const psSphere* restrict position2,
    277                             psSphereOffsetMode mode, psSphereOffsetUnit unit)
     284                            psSphereOffsetMode mode,
     285                            psSphereOffsetUnit unit)
    278286{
    279287    // psPlane* lin;
     
    336344psSphere* psSphereSetOffset(const psSphere* restrict position,
    337345                            const psSphere* restrict offset,
    338                             psSphereOffsetMode mode, psSphereOffsetUnit unit)
     346                            psSphereOffsetMode mode,
     347                            psSphereOffsetUnit unit)
    339348{
    340349    psPlane lin;
  • trunk/psLib/src/astronomy/psAstrometry.c

    r1492 r1497  
    88*  @author George Gusciora, MHPCC
    99*
    10 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2004-08-11 23:54:46 $
     10*  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2004-08-12 01:32:21 $
    1212*
    1313*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8080}
    8181
    82 /*
    83  * XXX: The SDRS states this should be a private p_ps() procedure.
    84  */
    8582void p_psGrommitFree(psGrommit* grommit)
    8683{
     
    167164
    168165/*****************************************************************************
    169 XXX: We assume that readouts have valid coordinates from the range
    170     (0,numRows or numCols) in each dimension, and that they are square with the
    171      x/y axis.
    172166XXX: if we find no cell with has this coordinate, we return NULL.
    173167XXX: must deallocate memory.
     
    277271
    278272/*****************************************************************************
    279 XXX: This implementation requires a new psGrommit be created for each
    280      transformation, as well as a few psPlane structs.  Can this be implemented
    281      better?
     273XXX: determine the grommit from the FPA associated with this chip.
    282274XXX: must determine the correct values for XXX_Mag and XXX_Col;
    283275 *****************************************************************************/
  • trunk/psLib/src/astronomy/psCoord.c

    r1492 r1497  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-08-11 23:53:54 $
     12*  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-08-12 01:32:21 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7676
    7777// This function prototype has been modified since the SDRS.
    78 psSphereTransform* psSphereTransformAlloc(double NPlat, double Xo, double xo)
     78psSphereTransform* psSphereTransformAlloc(double NPlat,
     79        double Xo,
     80        double xo)
    7981{
    8082    psSphereTransform* tmp = (psSphereTransform* ) psAlloc(sizeof(psSphereTransform));
     
    9597// there are no typo's.
    9698
    97 psSphere* psSphereTransformApply(psSphere* out, const psSphereTransform* transform, const psSphere* coord)
     99psSphere* psSphereTransformApply(psSphere* out,
     100                                 const psSphereTransform* transform,
     101                                 const psSphere* coord)
    98102{
    99103    double sinY = 0.0;
     
    164168
    165169// This is some kind of arc tan function.
    166 float arg(float x, float y)
     170float arg(float x,
     171          float y)
    167172{
    168173    if (x > 0) {
     
    184189// XXX: Waiting for the definition of the PS_PROJ_PAR projection.
    185190// XXX: Waiting for the definition of the PS_PROJ_GLS projection.
    186 psPlane* psProject(const psSphere* coord, const psProjection* projection)
     191psPlane* psProject(const psSphere* coord,
     192                   const psProjection* projection)
    187193{
    188194    float R = 0.0;
     
    226232// XXX: Waiting for the definition of the PS_PROJ_PAR projection.
    227233// XXX: Waiting for the definition of the PS_PROJ_GLS projection.
    228 psSphere* psDeproject(const psPlane* coord, const psProjection* projection)
     234psSphere* psDeproject(const psPlane* coord,
     235                      const psProjection* projection)
    229236{
    230237    float R = 0.0;
     
    275282psSphere* psSphereGetOffset(const psSphere* restrict position1,
    276283                            const psSphere* restrict position2,
    277                             psSphereOffsetMode mode, psSphereOffsetUnit unit)
     284                            psSphereOffsetMode mode,
     285                            psSphereOffsetUnit unit)
    278286{
    279287    // psPlane* lin;
     
    336344psSphere* psSphereSetOffset(const psSphere* restrict position,
    337345                            const psSphere* restrict offset,
    338                             psSphereOffsetMode mode, psSphereOffsetUnit unit)
     346                            psSphereOffsetMode mode,
     347                            psSphereOffsetUnit unit)
    339348{
    340349    psPlane lin;
Note: See TracChangeset for help on using the changeset viewer.