IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 23, 2006, 10:04:31 AM (20 years ago)
Author:
drobbin
Message:

updated PrecessMethod. Fixed MetadataAddStr to error on NULL input. Time_TideUT1Corr?

File:
1 edited

Legend:

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

    r6036 r6184  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.77 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-01-18 20:59:31 $
     12 *  @version $Revision: 1.78 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-01-23 20:04:31 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    920920    PS_ASSERT_PTR_NON_NULL(time, NULL);
    921921    psTime *out = NULL;
     922    //Also see psEOC_PolarTideCorr for more info.
    922923
    923924    // Convert psTime to MJD
     
    982983    out = psTimeAlloc(time->type);
    983984    *out = *time;
    984     //    out->sec = time->sec;
    985     //    out->nsec = time->nsec;
    986     //    out->leapsecond = time->leapsecond;
    987985    if (out->type != PS_TIME_UT1) {
    988986        out = psTimeConvert(out, PS_TIME_UT1);
    989987    }
     988    //see if corrections include seconds or just nano-seconds
     989    //nano-seconds must be converted (scaled) to integer values & total cannot be negative
    990990    if (fabs(CORZ) > 1.0) {
    991991        int sec = (int)CORZ;
     
    18061806}
    18071807
     1808psTime *p_psTimeCopy(const psTime *inTime)
     1809{
     1810    PS_ASSERT_PTR_NON_NULL(inTime, NULL);
     1811    psTime *outTime = psTimeAlloc(inTime->type);
     1812    *outTime = *inTime;
     1813    return outTime;
     1814}
     1815
Note: See TracChangeset for help on using the changeset viewer.