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

Amal Inge amalingenieur89 at gmail.com
Mon Dec 10 07:25:10 MST 2018


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" ;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncarg-talk/attachments/20181210/3817c516/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xy.ncl
Type: application/octet-stream
Size: 1968 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncarg-talk/attachments/20181210/3817c516/attachment.obj>


More information about the ncarg-talk mailing list