In an NCL script, prior to using addfile on a a grib file use
setfileoption("grb","SingleElementDimensions","Initial_time")
This will create a time dimension.
===
If you are using ncl_filedump or ncl_convert2nc
%> ncl_filedump -itime foo.grb
%> ncl_convert2nc foo.grb -itime
On 11/13/2012 11:45 AM, Kantave Greene wrote:
> How do you use the function grib_stime2itime?
> I have a bunch of ncdc 3hrly data with no time array but an attribute
> initial_time. The variables have lev, lat, lon dimensions. I would like
> to add a time dimension. The function says it creates a coordinate array
> with dimension 0 name time but there is no example(s) on how to use the
> script.
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Nov 13 12:19:04 2012
This archive was generated by hypermail 2.1.8 : Tue Nov 13 2012 - 14:27:24 MST