Converting Julian day of the year (JJJ) to the correct date in YYYYMMDD

From: A.J. Eiserloh <arthur.eiserloh_at_nyahnyahspammersnyahnyah>
Date: Fri Dec 06 2013 - 15:18:28 MST

Hi, I know that the Julian day 333 of the year 2012 is 11/28/2012. However,
when I use cd_calendar() to try and give me the date of the year, it gives
me 11/29 instead. Why is this so and how can I fix this. This is what I
type in ncl. I also know that 2012 was a leap year.

jjj=333
jjj@units="days since 2012-1-1"
jjj@calendar="julian"
doy=cd_calendar(jjj,-2)

output:

(0) 20121129

-- 
Arthur J. Eiserloh, Jr.
San Jose State University
Graduate Student
Dept. of Meteorology and Climate Science

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Dec 6 15:18:40 2013

This archive was generated by hypermail 2.1.8 : Fri Dec 13 2013 - 11:39:30 MST