IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2430


Ignore:
Timestamp:
Nov 24, 2004, 10:27:46 AM (22 years ago)
Author:
gusciora
Message:

Added cell->toSky member.

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

Legend:

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

    r2273 r2430  
    88 *  @author George Gusciora, MHPCC
    99 *
    10  *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-11-04 01:04:57 $
     10 *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-11-24 20:27:46 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2626#include "psConstants.h"
    2727#include "psAstronomyErrors.h"
     28#include "psTrace.h"
     29#include "psLogMsg.h"
    2830
    2931#include "slalib.h"
     
    165167        psFree(cell->toFPA);
    166168        psFree(cell->toTP);
     169        psFree(cell->toSky);
    167170    }
    168171}
     
    438441    cell->toFPA = NULL;
    439442    cell->toTP = NULL;
     443    cell->toSky = NULL;
    440444
    441445    cell->parent = parentChip;
     
    718722    PS_PTR_CHECK_NULL(cell->parent->parent, NULL);
    719723    PS_PTR_CHECK_NULL(cell->parent->parent->projection, NULL);
     724    if (cell->toSky) {
     725        // XXX: Should we use toTP or toSky?
     726        psLogMsg(__func__, PS_LOG_WARN,
     727                 "WARNING: psCoordCellToSkyQuick(): The cell->toSky transform is ignored.  The cell->toTP transform is being used.");
     728    }
    720729
    721730    psPlane *tpCoord = NULL;
     
    851860    PS_PTR_CHECK_NULL(cell->parent->parent->projection, NULL);
    852861    PS_PTR_CHECK_NULL(cell->toTP, NULL);
     862    if (cell->toSky) {
     863        // XXX: Should we use toTP or toSky?
     864        psLogMsg(__func__, PS_LOG_WARN,
     865                 "WARNING: psCoordSkyToCellQuick(): The cell->toSky transform is ignored.  The cell->toTP transform is being used.");
     866    }
    853867
    854868    psPlane *tpCoord = NULL;
  • trunk/psLib/src/astronomy/psAstrometry.h

    r2204 r2430  
    88*  @author George Gusciora, MHPCC
    99*
    10 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2004-10-27 00:57:30 $
     10*  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2004-11-24 20:27:46 $
    1212*
    1313*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    129129    psPlaneTransform* toFPA;           ///< transformations from cell to FPA coordinates
    130130    psPlaneTransform* toTP;            ///< transformations from cell to tangent plane coordinates
     131    psPlaneTransform* toSky;            ///< transformations from cell to tangent plane coordinates
    131132
    132133    struct psChip* parent;             ///< chip in which contains this cell
Note: See TracChangeset for help on using the changeset viewer.