IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 25, 2005, 3:20:15 PM (21 years ago)
Author:
drobbin
Message:

Finished and tested psGravityDeflection function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/tst_psEarthOrientation.c

    r5306 r5446  
    66*  @author d-Rob, MHPCC
    77*
    8 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-10-13 20:23:57 $
     8*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-10-26 01:20:15 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1515#include "pslib_strict.h"
    1616
     17static psS32 testEOCParallax(void);
     18static psS32 testAberration(void);
     19static psS32 testGravityDeflect(void);
     20static psS32 testEOCPrecession(void);
     21static psS32 testEOCPolar(void);
     22static psS32 testEOCNutation(void);
     23static psS32 testSphereRotTransforms(void);
     24
    1725testDescription tests[] = {
     26                              {testEOCParallax, 666, "psEOCParallax()", 0, false},
     27                              {testAberration, 667, "psAberration()", 0, false},
     28                              {testGravityDeflect, 668, "psGravityDeflect()", 0, false},
     29                              {testEOCPrecession, 669, "psEOCPrecession()", 0, false},
     30                              {testEOCPolar, 670, "psEOCPolar()", 0, false},
     31                              {testEOCNutation, 671, "psEOCNutation()", 0, false},
     32                              {testSphereRotTransforms, 672, "psSphereRotTransforms()", 0, false},
    1833                              {NULL}
    1934                          };
     
    2338    psLogSetLevel( PS_LOG_INFO );
    2439
    25     return ( ! runTestSuite( stderr, "psCoord", tests, argc, argv ) );
     40    return ( ! runTestSuite( stderr, "psEarthOrientation", tests, argc, argv ) );
    2641}
    2742
     43psS32 testEOCParallax(void)
     44{
    2845
     46    return 0;
     47}
    2948
     49psS32 testAberration(void)
     50{
     51
     52    return 0;
     53}
     54
     55psS32 testGravityDeflect(void)
     56{
     57
     58    psSphere *actual = NULL;
     59    psSphere *apparent = psSphereAlloc();
     60    psSphere *sun = psSphereAlloc();
     61
     62    sun->r = 0.2;
     63    sun->d = 0.2;
     64    apparent->r = 0.2035;
     65    apparent->d = 0.2035;
     66
     67    actual = psGravityDeflection(apparent, actual, sun);
     68    psSphere *result = psSphereSetOffset(apparent, actual, PS_SPHERICAL, PS_RADIAN);
     69    printf("\nApparent r,d = %.13g,%.13g    Actual r,d = %.13g, %.13g \n",
     70           apparent->r, apparent->d, result->r, result->d);
     71    psFree(result);
     72    psFree(actual);
     73    psFree(apparent);
     74    psFree(sun);
     75
     76    return 0;
     77}
     78
     79psS32 testEOCPrecession(void)
     80{
     81
     82    return 0;
     83}
     84
     85psS32 testEOCPolar(void)
     86{
     87
     88    return 0;
     89}
     90
     91psS32 testEOCNutation(void)
     92{
     93
     94    return 0;
     95}
     96
     97psS32 testSphereRotTransforms(void)
     98{
     99
     100    return 0;
     101}
     102
Note: See TracChangeset for help on using the changeset viewer.