<div dir="ltr">You may try this.<div>1) Convert the already existing ERAI_1979.nc to grib using CDO as </div><div>cdo -f grb copy ERAI_1979.nc ERAI1979.grb</div><div><br></div><div>2) Create a ctl file for the grib file using</div><div><br></div><div>cdo gradsdes2 ERA_1979.grb</div><div><br></div><div>3) Open the grib file created from nc file using the CDO created ctl file.</div><div><br></div><div>Just a suggestion.</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Sincerely<br>***********************************************<br>Dr. Jayakrishnan.P.R<br><div>Project Scientist-C<br>National Centre for Medium Range Weather Forecasting<br>Earth System Science Organisation<br>Ministry of Earth Sciences<br>A-50, Sector 62, NOIDA -201 309, INDIA<br>Mob: 09496026547</div><div>Alternate Email: <a href="mailto:jkrishna@ncmrwf.gov.in" target="_blank">jkrishna@ncmrwf.gov.in</a><br><br>***********************************************</div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Sep 3, 2015 at 10:39 PM, samo diatta <span dir="ltr"><<a href="mailto:samo.diatta@univ-zig.sn" target="_blank">samo.diatta@univ-zig.sn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everybody,<br>
I have a problem with interpreting my CTL file; I have a netcdf file<br>
with curious time format (or timestamp, see below when I use CDO) with<br>
ncdump I can view the time dimension; so I decide to use a ctl file to<br>
set the timestamp and open it with grads, unfortunately an error I<br>
can't understand occur when I open the ctl file (see below). Someone<br>
has an idea, how to solve the problem. Find attached the ctl file<br>
<br>
ga-> open file_ERAI.ctl<br>
Scanning description file: file_ERAI.ctl<br>
Data file <a href="http://ERAI.EP.1979-2013.nc" rel="noreferrer" target="_blank">ERAI.EP.1979-2013.nc</a> is open as file 1<br>
LON set to 0 360<br>
LAT set to -89.463 89.8339<br>
LEV set to 1000 1000<br>
Time values set: 1979:1:1:0 1979:1:1:0<br>
E set to 1 1<br>
ga-> q file<br>
File 1 :<br>
Descriptor: file_ERAI.ctl<br>
Binary: <a href="http://ERAI.EP.1979-2013.nc" rel="noreferrer" target="_blank">ERAI.EP.1979-2013.nc</a><br>
Type = Gridded<br>
Xsize = 512 Ysize = 256 Zsize = 1 Tsize = 420 Esize = 1<br>
Number of Variables = 3<br>
lon 0 y,x longitude<br>
lat 0 y,x latitude<br>
ep 0 t,y,x Budget Evaporation minus Precipitation<br>
ga-> d ep<br>
Error: Variable ep not in netcdf file<br>
Data Request Error: Error for variable 'ep'<br>
Error ocurred at column 1<br>
DISPLAY error: Invalid expression<br>
Expression = ep<br>
.................. ncdump gives :<br>
ncdump -h <a href="http://ERAI.EP.1979-2013.nc" rel="noreferrer" target="_blank">ERAI.EP.1979-2013.nc</a><br>
netcdf ERAI.EP.1979-2013 {<br>
dimensions:<br>
time = 420 ;<br>
lat = 256 ;<br>
lon = 512 ;<br>
variables:<br>
float EP(time, lat, lon) ;<br>
EP:units = "kg/m2/s" ;<br>
EP:long_name = "Budget Evaporation minus Precipitation" ;<br>
EP:_FillValue = 1.e+20f ;<br>
double time(time) ;<br>
time:calendar = "standard" ;<br>
float lat(lat) ;<br>
lat:La1 = 89.463f ;<br>
lat:Lo1 = 0.f ;<br>
lat:La2 = -89.463f ;<br>
lat:Lo2 = 359.297f ;<br>
lat:Di = 0.7031252f ;<br>
lat:N = 128.f ;<br>
lat:units = "degrees_north" ;<br>
lat:GridType = "Gaussian Latitude/Longitude Grid (Quasi-Regular)" ;<br>
lat:long_name = "latitude" ;<br>
float lon(lon) ;<br>
lon:La1 = 89.463f ;<br>
lon:Lo1 = 0.f ;<br>
lon:La2 = -89.463f ;<br>
lon:Lo2 = 359.297f ;<br>
lon:Di = 0.7031252f ;<br>
lon:N = 128.f ;<br>
lon:units = "degrees_east" ;<br>
lon:GridType = "Gaussian Latitude/Longitude Grid (Quasi-Regular)" ;<br>
lon:long_name = "longitude" ;<br>
}<br>
............. and<br>
CDO showdate <a href="http://ERAI.EP.1979-2013.nc" rel="noreferrer" target="_blank">ERAI.EP.1979-2013.nc</a><br>
arning (splitTimevalue) : Reset wrong date/time to 0019-01-01 00:00:00!<br>
0019-01-01 0019-01-02 0019-01-03 0019-01-04 0019-01-05<br>
0019-01-06 0019-01-07 0019-01-08 0019-01-09 0019-01-10 0019-01-11<br>
0019-01-12 0019-01-01 0019-01-02 0019-01-03 0019-01-04<br>
0019-01-05 0019-01-06 0019-01-07 0019-01-08 0019-01-09 0019-01-10<br>
.......................................................<br>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>