IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 12, 2005, 9:12:01 AM (21 years ago)
Author:
desonia
Message:

massive restructuring of codebase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psTime.c

    r4409 r4540  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-06-28 20:17:52 $
     12 *  @version $Revision: 1.66 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-07-12 19:12:00 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    887887}
    888888
    889 struct psSphere* p_psTimeGetPoleCoords(const psTime* time)
     889psSphere* p_psTimeGetPoleCoords(const psTime* time)
    890890{
    891891    psU32 nTables = 3;
     
    896896    psF64 c = 0.0;
    897897    psF64 mjdPred = 0.0;
    898     struct psSphere* output = NULL;
     898    psSphere* output = NULL;
    899899    psLookupStatusType xStatus = PS_LOOKUP_SUCCESS;
    900900    psLookupStatusType yStatus = PS_LOOKUP_SUCCESS;
     
    908908    PS_ASSERT_INT_WITHIN_RANGE(time->nsec,0,(psU32)((1e9)-1),NULL);
    909909
    910     if(time->type != PS_TIME_TAI)
    911     {
     910    if(time->type != PS_TIME_TAI) {
    912911        psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_TYPE_INCORRECT, time->type);
    913912        return NULL;
     
    922921
    923922    // Value could not be found through table lookup and interpolation
    924     if(xStatus==PS_LOOKUP_PAST_TOP && yStatus==PS_LOOKUP_PAST_TOP)
    925     {
     923    if(xStatus==PS_LOOKUP_PAST_TOP && yStatus==PS_LOOKUP_PAST_TOP) {
    926924
    927925        // Date too earlier for tables. Get default polar coodinate values from metadata, and issue warning.
     
    942940        y = tableMetadataItem->data.F64;
    943941
    944     } else if(xStatus==PS_LOOKUP_PAST_BOTTOM && yStatus==PS_LOOKUP_PAST_BOTTOM)
    945     {
     942    } else if(xStatus==PS_LOOKUP_PAST_BOTTOM && yStatus==PS_LOOKUP_PAST_BOTTOM) {
    946943
    947944        /* Date too late for tables. Issue warning and use following formulae for predicting
     
    1000997            yp->data.F64[4]*sin(c);
    1001998
    1002     } else if(xStatus!=PS_LOOKUP_SUCCESS || yStatus!=PS_LOOKUP_SUCCESS)
    1003     {
     999    } else if(xStatus!=PS_LOOKUP_SUCCESS || yStatus!=PS_LOOKUP_SUCCESS) {
    10041000        psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_INTERPOLATION_FAILED);
    10051001        return NULL;
Note: See TracChangeset for help on using the changeset viewer.