[ncl-talk] how to create a time variable inclue second?
Alan Brammer
abrammer at albany.edu
Fri Apr 28 08:04:00 MDT 2017
There is a function in 6.4.0 named cd_inv_string <https://www.ncl.ucar.edu/Document/Functions/User_contributed/cd_inv_string.shtml> your format should be “%Y-%N-%D %H:%M:%S”
I attached the version that is in 6.4.0 below. If you put this in your $NCARG_ROOT/lib/ncarg/nclscripts/contrib/ directory you can load it as specified on the documentation page. (or update to version 6.4.0 if you haven’t already.)
Alan
##############################
Alan Brammer,
Post-Doc Researcher
Department of Atmospheric and Environmental Sciences,
University at Albany, State University of New York, Albany, NY, 12222
abrammer at albany.edu
##############################
> On 28 Apr 2017, at 03:36, dyjbean at gmail.com wrote:
>
>
> hi,
> i have a radiosonde data, whose time varible is expressed like 2017-04-26 16:12:54,
> i want to create a time variable in nc file, but i cannot find a fuction which can write this expression into a time array,
> there is a yyyymmddhh_time , but not yyyymmddhhss_time, can you give an advice about how to create this kind data in ncl?
>
> thanks
>
> dyjbean at gmail.com <mailto:dyjbean at gmail.com>_______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170428/09f607c9/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cd_inv_string.ncl
Type: application/octet-stream
Size: 4398 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170428/09f607c9/attachment.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170428/09f607c9/attachment-0001.html
More information about the ncl-talk
mailing list