comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Converting days since 0-01-01 to Julian/Gregorian days - how can IDL recognise 0 AD?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Converting days since 0-01-01 to Julian/Gregorian days - how can IDL recognise 0 AD? [message #89398] Tue, 07 October 2014 06:21 Go to previous message
Jasdeep Anand is currently offline  Jasdeep Anand
Messages: 16
Registered: August 2011
Junior Member
I have data which has been given timestamps with the units: "days since 0-01-01 00:00", which I'm assuming means since January 1st, 0 AD. I'd like to convert this into a format I can actually use, preferably Julian days so IDL can recognise the date format when plotting.

From what I understand I can't use any of the default IDL programs for this task (JULDAY, GREG2JUL, etc) because of the fact that the year 0 AD doesn't exist (IDL's calendar instead goes straight from -1 to 1 to conserve leap years).

What should I do? I'm unsure of the timestamps used to calculate the data (all I have is the year and month) and I'll be comparing this with data from a separate dataset which does not have this problem. I don't think I can use -1 or 1 in this case as the year because the final Julian day will be wrong. Has anyone encountered this problem at all?

Thanks,

J. Anand
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Read ASCII time format question!!
Next Topic: non-rectangular array subset

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:47:59 PDT 2025

Total time taken to generate the page: 0.00455 seconds