[Thread Prev][Thread Next][Index]
time/date format for netcdf
Dear Ferreters,
I think probably some of you have been through this problem before.
I have carefully read the ferret user documentation and some previous online
postings to ferret forums, but I still have hard time with the time/date
when creating netcdf files.
My date/time format from my ascii files that I generated from MySql
Databases is as follows:
yyyy-mm-dd hh:mm:ss or for example
2003-09-23 09:00:00
This format did not work when trying to generate netcdf files. I used mysql
date format functions to make it so ferret "likes" it (dd-mmm-yyyy:hh:mm),
but no luck. Here is the example:
yes? def axis/x=80w:72w:1/units=longitude xax
yes? def axis/y=36n:40n:1/units=latitude yax
yes? def axis/z=0:0:1/units=meters zax
yes? def axis/t="1-jan-2003:00:00":"31-aug-2003:00:00":1/units=days tax
yes? def grid/x=xax/y=yax/z=zax/t=tax bishopville
yes?
file/grid=bishopville/var="time,lat,lon,temp,salinity,dop,doc,ph,turbidity,c
hlorophyll" bishopville.res
yes? save/file=bishopville.cdf
time,lat,lon,temp,salinity,dop,doc,ph,turbidity,chlorophyll
Success
**TMAP ERR:
Last or next-to-last record read:
"26-apr-03:06:04" 38.42 -75.19 15.46 17.25 95.30 8.57 13
Data set: ./bishopville.res
Data file: ./bishopville.res
Any and all feedback would be greatly appreciated.
Enils Bashi
Programmer - Chesapeake Bay Program
Veridyne Incorporated
Annapolis, Maryland: (410) 267-9833
www.chesapeakebay.net
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement