IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 18, 2006, 10:59:32 AM (21 years ago)
Author:
drobbin
Message:

Small update to TEO/polarTide. New fxn Time_TideUT1Corr done and tested.

File:
1 edited

Legend:

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

    r6030 r6036  
    88 *  @author Robert Daniel DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-01-18 00:41:29 $
     10 *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-01-18 20:59:31 $
    1212 *
    1313 *  Copyright 2005 Maui High Performance Computing Center, University of Hawaii
     
    846846    if (tidalCorr != NULL && tidalCorr->s != 0.0) {
    847847        int nsec = in->nsec + (int)(tidalCorr->s * 1e9);
    848         if (nsec < 0.0) {
     848        if (nsec < 0) {
    849849            in->sec += -1;
    850             in->nsec = (int)(1e9) - nsec;
     850            in->nsec = (int)(1e9) + nsec;
    851851        } else {
    852852            in->nsec = nsec;
     
    10091009
    10101010    // Calculate number of Julian centuries since 2000
    1011     //XXX: NOT SURE IF THIS IS CORRECT FOR THIS SITUATION
    1012     //    double RJD = ( MJD - MJD_2000 ) / JULIAN_CENTURY;
    10131011    double RJD = MJD;
    10141012
Note: See TracChangeset for help on using the changeset viewer.