[ncarg-talk] convert the time "since seconds" to month-year

Mary Haley haley at ucar.edu
Mon Dec 10 15:31:03 MST 2018


Dear Amal,

Please post NCL questions to the ncl-talk email list and not the ncarg-talk
email list.

I believe you are already a member, since I've seen previous posts from you
on ncl-talk.

Thank you,

--Mary


On Mon, Dec 10, 2018 at 7:25 AM Amal Inge <amalingenieur89 at gmail.com> wrote:

> Dear NCL experts,
>
> I want to plot a time series of monthly data of nc file with the script
> attached but it didn't work, i think that I should convert the time "since
> seconds" to month-year.
> how could i do this please?
>
> many thanks
> Amal
>
> netcdf dox01_med_0-52 {
> dimensions:
>     time = UNLIMITED ; // (215 currently)
>     lev = 13 ;
>     lat = 253 ;
>     lon = 670 ;
> variables:
>     double time(time) ;
>         time:axis = "T" ;
>         time:calendar = "standard" ;
>         time:units = "seconds since 1970-01-01 00:00:00" ;
>         time:long_name = "time" ;
>         time:standard_name = "time" ;
>     float lev(lev) ;
>         lev:_CoordinateZisPositive = "down" ;
>         lev:_CoordinateAxisType = "Height" ;
>         lev:axis = "Z" ;
>         lev:positive = "down" ;
>         lev:units = "m" ;
>         lev:long_name = "depth" ;
>         lev:standard_name = "depth" ;
>     float lat(lat) ;
>         lat:axis = "Y" ;
>         lat:units = "degrees_north" ;
>         lat:long_name = "latitude" ;
>         lat:standard_name = "latitude" ;
>     float lon(lon) ;
>         lon:axis = "X" ;
>         lon:units = "degrees_east" ;
>         lon:long_name = "longitude" ;
>         lon:standard_name = "longitude" ;
>     float dox(time, lev, lat, lon) ;
>         dox:missing_value = 1.e+20f ;
>         dox:_ChunkSizes = 1, 22, 84, 161 ;
>         dox:units = "millimol m-3" ;
>         dox:long_name = "Mole concentration of Dissolved Molecular Oxygen
> in sea water" ;
>         dox:standard_name =
> "mole_concentration_of_dissolved_molecular_oxygen_in_sea_water" ;
>         dox:_FillValue = 1.e+20f ;
>
> // global attributes:
>         :creation_date = "Tue Dec  4 23:27:50 CET 2018" ;
>         :Conventions = "None" ;
>         :source_file = "dox_med_0-52.nc" ;
>         :title = "NCL Efficient Approach to netCDF Creation" ;
> }
>
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncarg-talk/attachments/20181210/6ea0b297/attachment.html>


More information about the ncarg-talk mailing list