[ncl-talk] Issue with cd_calendar

Andrew Kren - NOAA Affiliate andrew.kren at noaa.gov
Mon May 21 14:27:12 MDT 2018


Dear ncl-talk,

I'm using cd_calendar to convert seconds since 2000 values to UTC dates.
The issue I'm getting is that it is saying the year is 1995, when in
reality it should be 2016. I attached my code. Below shows the
printVarSummary of the time variable in the netcdf files. I can't seem to
find out what is going wrong.

Variable: time (subsection)

Type: double

Total Size: 88 bytes

            11 values

Number of Dimensions: 1

Dimensions and sizes: [time | 11]

Coordinates:

            time: [525573024.6776075..525573214.5466383]

Number Of Attributes: 4

  long_name : Measurement time

  scale_factor :   1

  comment : seconds since 2000-01-01 00:00:00.0

  units : seconds

(0) 525573024.6776075

(1) 525573020.6182248

(2) 525573013.0496269

(3) 525573022.4901956

(4) 525573015.4521056

(5) 525573007.5407001

(6) 525572992.1642393

(7) 525572979.8349053

(8) 525573218.4769071

(9) 525573216.6511251

(10) 525573214.5466383


Thanks,

-- 
Andrew Kren
Assistant Scientist
CIMAS & NOAA/AOML
325 Broadway, Boulder, CO 80305
(303) 497-5418
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180521/a661e5e9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: examine_HAMSR_data.ncl
Type: application/octet-stream
Size: 6955 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180521/a661e5e9/attachment.obj>


More information about the ncl-talk mailing list