IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5557


Ignore:
Timestamp:
Nov 21, 2005, 9:34:44 AM (21 years ago)
Author:
magnier
Message:

implemented psCoordSkyToTP and psCoordTPToSky

Location:
branches/eam_rel8_b0/psModules/src/astrom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel8_b0/psModules/src/astrom/pmAstrometry.c

    r5170 r5557  
    88*  @author GLG, MHPCC
    99*
    10 *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2005-09-28 20:43:52 $
     10*  @version $Revision: 1.1.4.1 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2005-11-21 19:34:44 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    458458
    459459    // XXX: this was done by a SLALIB call -- needs to be reimplemented
    460     psWarning("Warning!  psCoordTPToSky functionality is no longer implemented");
     460    // psWarning("Warning!  psCoordTPToSky functionality is no longer implemented");
    461461    // slaAopqk(tpCoord->x, tpCoord->y, (double*)grommit,
    462462    //         &AOB, &ZOB, &HOB, &outSphere->r, &outSphere->d);
     463
     464    // XXX EAM : basic TPToSky is performed by applying the projection
     465    //           when the EOC code is ready, the full atmosphere, precession, nutation
     466    //           model can be applied.
     467
     468    // XXX EAM : psDeproject needs to have a psSphere *out argument:
     469    //           psPlane* psProject(psSphere *out, const psPlane *coord, const psProjection *projection);
     470
     471    psSphere *tmp = psDeproject (tpCoord, projection);
     472    *outSphere = *tmp;
     473    psFree (tmp);
    463474
    464475    return (outSphere);
     
    586597
    587598    // XXX: this was done by a SLALIB call -- needs to be reimplemented
    588     psWarning("Warning!  psCoordSkyToTP functionality is no longer implemented");
     599    // psWarning("Warning!  psCoordSkyToTP functionality is no longer implemented");
    589600    // slaOapqk(type, in->r, in->d, (double*)grommit, &tpCoord->x, &tpCoord->y);
     601
     602    psPlane *tmp = psProject (in, projection);
     603    *tpCoord = *tmp;
     604    psFree (tmp);
    590605
    591606    return(tpCoord);
  • branches/eam_rel8_b0/psModules/src/astrom/pmAstrometry.h

    r5170 r5557  
    88*  @author GLG, MHPCC
    99*
    10 *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2005-09-28 20:43:52 $
     10*  @version $Revision: 1.1.4.1 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2005-11-21 19:34:44 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    391391);
    392392
    393 
    394393/** Translate a sky coordinate into a cell coordinate
    395394 *
Note: See TracChangeset for help on using the changeset viewer.