IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 2, 2005, 6:31:22 PM (21 years ago)
Author:
drobbin
Message:

Updated EOC files(fxns) and tests, specifically TEOtoCEO sphere rotations

File:
1 edited

Legend:

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

    r5455 r5466  
    99*  @author Robert Daniel DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-11-02 01:07:25 $
     11*  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2005-11-03 04:31:22 $
    1313*
    1414*  Copyright 2005 Maui High Performance Computing Center, University of Hawaii
     
    288288}
    289289
    290 
     290/*
    291291double psEOC_ParallaxFactor(const psSphere *coords,
    292292                            const psTime *time)
    293293{
    294 
    295 
     294 
     295 
    296296    return NAN;
    297297}
     298*/
    298299
    299300psEarthPole *psEOC_PrecessionModel(const psTime *time)
     
    455456psSphereRot* psSphereRot_TEOtoCEO(const psTime *time)
    456457{
    457     return NULL;
     458    PS_ASSERT_PTR_NON_NULL(time,NULL);
     459    psTime *in = psTimeAlloc(time->type);
     460    *in = *time;
     461    if (in->type != PS_TIME_UT1) {
     462        in = psTimeConvert(in, PS_TIME_UT1);
     463    }
     464    double T = (double)(in->sec) + (double)(in->nsec / 1e9);
     465    printf("\nThe Value of T is = %.13g\n", T);
     466    T += -2451545.0;
     467    printf("\nThe Value of T is = %.13g\n", T);
     468    double theta = 2.0 * M_PI * (0.7790572732640 + 1.00273781191135448 * T);
     469    psSphereRot *out = psSphereRotInvert(theta, 0.0, 0.0);
     470
     471    psFree(in);
     472    return out;
    458473}
    459474
Note: See TracChangeset for help on using the changeset viewer.