IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4937 for trunk/psLib/src/astro


Ignore:
Timestamp:
Aug 31, 2005, 12:28:35 PM (21 years ago)
Author:
drobbin
Message:

fixed psSphere struct, changed psPolynomial to unsigned int's

Location:
trunk/psLib/src/astro
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.h

    r4898 r4937  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-08-30 01:14:10 $
     12*  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-08-31 22:28:35 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2424#include "psList.h"
    2525#include "psFunctions.h"
    26 #include "psTime.h"
     26//#include "psTime.h"
    2727
    2828/// @addtogroup CoordinateTransform
     
    5252 *
    5353 */
    54 typedef struct psSphere
     54typedef struct
    5555{
    5656    double r;                          ///< RA
  • trunk/psLib/src/astro/psSphereOps.h

    r4898 r4937  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-08-30 01:14:10 $
     9 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-08-31 22:28:35 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1919/// @{
    2020
    21 #include "psCoord.h"
     21//#include "psCoord.h"
     22#include "psTime.h"
    2223
    2324/** Spherical Rotation Definition
  • trunk/psLib/src/astro/psTime.c

    r4898 r4937  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.67 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-08-30 01:14:10 $
     12 *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-08-31 22:28:35 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2828#include "psAbort.h"
    2929#include "psImage.h"
    30 #include "psCoord.h"
    3130#include "psString.h"
    3231#include "psMetadata.h"
     
    899898}
    900899
    901 struct psSphere* p_psTimeGetPoleCoords(const psTime* time)
     900psSphere* p_psTimeGetPoleCoords(const psTime* time)
    902901{
    903902    psU32 nTables = 3;
     
    908907    psF64 c = 0.0;
    909908    psF64 mjdPred = 0.0;
    910     struct psSphere* output = NULL;
     909    psSphere* output = NULL;
    911910    psLookupStatusType xStatus = PS_LOOKUP_SUCCESS;
    912911    psLookupStatusType yStatus = PS_LOOKUP_SUCCESS;
     
    920919    PS_ASSERT_INT_WITHIN_RANGE(time->nsec,0,(psU32)((1e9)-1),NULL);
    921920
    922     if(time->type != PS_TIME_TAI)
    923     {
     921    if(time->type != PS_TIME_TAI) {
    924922        psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_TYPE_INCORRECT, time->type);
    925923        return NULL;
     
    934932
    935933    // Value could not be found through table lookup and interpolation
    936     if(xStatus==PS_LOOKUP_PAST_TOP && yStatus==PS_LOOKUP_PAST_TOP)
    937     {
     934    if(xStatus==PS_LOOKUP_PAST_TOP && yStatus==PS_LOOKUP_PAST_TOP) {
    938935
    939936        // Date too earlier for tables. Get default polar coodinate values from metadata, and issue warning.
     
    954951        y = tableMetadataItem->data.F64;
    955952
    956     } else if(xStatus==PS_LOOKUP_PAST_BOTTOM && yStatus==PS_LOOKUP_PAST_BOTTOM)
    957     {
     953    } else if(xStatus==PS_LOOKUP_PAST_BOTTOM && yStatus==PS_LOOKUP_PAST_BOTTOM) {
    958954
    959955        /* Date too late for tables. Issue warning and use following formulae for predicting
     
    10121008            yp->data.F64[4]*sin(c);
    10131009
    1014     } else if(xStatus!=PS_LOOKUP_SUCCESS || yStatus!=PS_LOOKUP_SUCCESS)
    1015     {
     1010    } else if(xStatus!=PS_LOOKUP_SUCCESS || yStatus!=PS_LOOKUP_SUCCESS) {
    10161011        psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_INTERPOLATION_FAILED);
    10171012        return NULL;
  • trunk/psLib/src/astro/psTime.h

    r4920 r4937  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-08-31 02:07:09 $
     13 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-08-31 22:28:35 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2626#include "psType.h"
    2727#include "psImage.h"
     28#include "psCoord.h"
    2829
    2930struct psSphere;
     
    173174 *  @return  psSphere*: Spherical coordinates of Earth's polar axias.
    174175 */
    175 struct psSphere* p_psTimeGetPoleCoords(
    176                 const psTime *time      ///< psTime determine polar orientation.
    177             );
     176psSphere* p_psTimeGetPoleCoords(
     177    const psTime *time      ///< psTime determine polar orientation.
     178);
    178179
    179180/** Calculate the number of leapseconds between two times.
Note: See TracChangeset for help on using the changeset viewer.