IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1510


Ignore:
Timestamp:
Aug 11, 2004, 5:11:45 PM (22 years ago)
Author:
gusciora
Message:

Added color/magnitude arguments.

Location:
trunk/psLib/src/astronomy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psAstrometry.c

    r1497 r1510  
    88*  @author George Gusciora, MHPCC
    99*
    10 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2004-08-12 01:32:21 $
     10*  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2004-08-12 03:11:45 $
    1212*
    1313*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    230230}
    231231
    232 /*****************************************************************************
    233 XXX: must determine the correct values for XXX_Mag and XXX_Col;
    234  *****************************************************************************/
    235232psPlane* psCoordFPAToTP(psPlane* outCoord,
    236233                        const psPlane* inCoord,
     234                        double color,
     235                        double magnitude,
    237236                        const psFPA* fpa)
    238237{
    239     float XXX_Mag = 0.0;
    240     float XXX_Col = 0.0;
    241 
    242238    return(psPlaneDistortApply(outCoord, fpa->toTangentPlane, inCoord,
    243                                XXX_Mag, XXX_Col));
     239                               magnitude, color));
    244240}
    245241
     
    272268/*****************************************************************************
    273269XXX: determine the grommit from the FPA associated with this chip.
    274 XXX: must determine the correct values for XXX_Mag and XXX_Col;
    275270 *****************************************************************************/
    276271psSphere* psCoordCellToSky(psSphere* skyCoord,
    277272                           const psPlane* cellCoord,
     273                           double color,
     274                           double magnitude,
    278275                           const psCell* cell)
    279276{
     
    282279    psFPA* parFPA = (cell->parent)->parent;
    283280    psGrommit* tmpGrommit = NULL;
    284     float XXX_Mag = 0.0;
    285     float XXX_Col = 0.0;
    286281
    287282    // Convert the input cell coordinates to FPA coordinates.
     
    289284
    290285    // Convert the FPA coordinates to tangent plane Coordinates.
    291     tpCoord = psPlaneDistortApply(tpCoord, parFPA->toTangentPlane, fpaCoord, XXX_Mag, XXX_Col);
     286    tpCoord = psPlaneDistortApply(tpCoord, parFPA->toTangentPlane, fpaCoord, magnitude, color);
    292287
    293288    // Generate a grommit for this FPA.
     
    366361
    367362
    368 /*****************************************************************************
    369 XXX: must determine the correct values for XXX_Mag and XXX_Col;
    370  *****************************************************************************/
    371363psPlane* psCoordTPToFPA(psPlane* fpaCoord,
    372364                        const psPlane* tpCoord,
     365                        double color,
     366                        double magnitude,
    373367                        const psFPA* fpa)
    374368{
    375     float XXX_Mag = 0.0;
    376     float XXX_Col = 0.0;
    377 
    378369    return (psPlaneDistortApply(fpaCoord, fpa->fromTangentPlane,
    379                                 tpCoord, XXX_Mag, XXX_Col));
     370                                tpCoord, magnitude, color));
    380371}
    381372
     
    407398psPlane* psCoordSkyToCell(psPlane* cellCoord,
    408399                          const psSphere* skyCoord,
     400                          double color,
     401                          double magnitude,
    409402                          const psCell* cell)
    410403{
     
    417410
    418411    // Convert the tangent plane coords to FPA coords.
    419     psPlane *fpaCoord = psCoordTPToFPA(fpaCoord, tpCoord, whichFPA);
     412    psPlane *fpaCoord = psCoordTPToFPA(fpaCoord, tpCoord, color,
     413                                       magnitude, whichFPA);
    420414
    421415    // Convert the FPA coords to chip coords.
  • trunk/psLib/src/astronomy/psAstrometry.h

    r1496 r1510  
    88*  @author George Gusciora, MHPCC
    99*
    10 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2004-08-12 01:23:20 $
     10*  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2004-08-12 03:11:45 $
    1212*
    1313*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    309309    psPlane* out,                      ///< a plane struct to recycle. If NULL, a new struct is created
    310310    const psPlane* in,                 ///< the coordinate within FPA
     311    double color,                      ///< Color of source
     312    double magnitude,                  ///< Magnitude of source
    311313    const psFPA* fpa                   ///< the FPA in interest
    312314);
     
    339341    psSphere* out,                     ///< a sphere struct to recycle. If NULL, a new struct is created
    340342    const psPlane* in,                 ///< the coordinate within cell
     343    double color,                      ///< Color of source
     344    double magnitude,                  ///< Magnitude of source
    341345    const psCell* cell                 ///< the cell in interest
    342346);
     
    370374    psPlane* out,                      ///< a plane struct to recycle. If NULL, a new struct is created
    371375    const psPlane* in,                 ///< the coordinate within tangent plane
     376    double color,                      ///< Color of source
     377    double magnitude,                  ///< Magnitude of source
    372378    const psFPA* fpa                   ///< the FPA of interest
    373379);
     
    400406    psPlane* out,                      ///< a plane struct to recycle. If NULL, a new struct is created
    401407    const psSphere* in,                ///< the Sky coordinate
     408    double color,                      ///< Color of source
     409    double magnitude,                  ///< Magnitude of source
    402410    const psCell* cell                 ///< the cell of interest
    403411);
Note: See TracChangeset for help on using the changeset viewer.