IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

fixed psSphere struct, changed psPolynomial to unsigned int's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.