>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  TIME2JDOFF






      Find Julian day and offset from seconds. JS, Timeaxis


Calling Sequence

      time2jdoff, t


      t = start time or array of times in seconds. in
        Time is in seconds after a reference time.
        Reference time may be specified with the
        REFERENCE keyword. Default is Julian Seconds,
        which are seconds after 0:00 Jan 1, 2000.

Keyword Parameters


        JD=jd returned Julian Day for 0:00 of the day of
          or just before start time in t.
        OFF=off returned offset in seconds which is to be
          subtracted from t to put in in the range 0 to midnight.
        REFERENCE=ref = date/time string (like "12:00 1 jan 1970")
          which is the zero point for time t. If not given this
          refernce time is assumed to be 0:00 1 Jan, 2000.


Common Blocks


      Notes: This routine is needed because IDL stores !x.crange
        only in single precision, not good enough for time
        intervals in seconds far from the zero time. This gives
        the values needed by the timeaxis routine:
        time2jdoff, t, jd=jd, off=off, ref="1 jan, 1970"
        plot,t-off, y, xstyle=5
        timeaxis, jd=jd

Modification History

      R. Sterner, 18 Aug, 1993
  Copyright (C) 1993, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.

© 2020 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us