<div dir="ltr">Have you tried removing the underscores from the names? Maybe there's a syntax limitation.<div><br></div><div>Jeff</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 13, 2018 at 1:47 AM, Kiswendsida Hyacinthe Guigma <span dir="ltr"><<a href="mailto:K.Guigma@sussex.ac.uk" target="_blank">K.Guigma@sussex.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you Jeff for these ideas. But none of them works.I am allowed to use up to 15 characters while I'm actually using only 14. And I removed several names to keep only 2 of them, but I still get the same error message. In the past I used similar length of names (24) with binary files (then using open) and it worked fine. So I don't think this could be the cause of the issue. <br>
<br>
GUIGMA<br>
______________________________<wbr>__________<br>
From: gradsusr [<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><wbr>] on behalf of Jeff Duda [<a href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>]<br>
Sent: Thursday, April 12, 2018 8:52 PM<br>
To: GrADS Users Forum<br>
<span class="">Subject: Re: [gradsusr] xdfopen with multiple files<br>
<br>
</span>Could it be that there is a length or character limit for entries in a control file and that your edef entry is exceeding that limit? What happens if you remove several of those names from the list in the EDEF line? If it works after removing several entries then that would suggest it is indeed a length limit issue.<br>
<br>
Jeff Duda<br>
<div><div class="h5"><br>
On Thu, Apr 12, 2018 at 12:11 PM, Kiswendsida Hyacinthe Guigma <<a href="mailto:K.Guigma@sussex.ac.uk">K.Guigma@sussex.ac.uk</a><mailto:<a href="mailto:K.Guigma@sussex.ac.uk"><wbr>K.Guigma@sussex.ac.uk</a>>> wrote:<br>
Hi grads-users!<br>
I have many Netcdf files into one folder that I want to plot using grads. Each file contains 111 variables and the X and Y dimensions are the same for them all. They don't contain time nor level dimension. ncdump gives me the following result:<br>
netcdf IND2_ERA_1_1_HImax_4d_95perc_<wbr>stat {<br>
dimensions:<br>
lon = 71 ;<br>
lat = 31 ;<br>
variables:<br>
double lon(lon) ;<br>
lon:units = "degrees_east" ;<br>
lon:long_name = "lon" ;<br>
lon:axis = "X" ;<br>
double lat(lat) ;<br>
lat:units = "degrees_north" ;<br>
lat:long_name = "lat" ;<br>
lat:axis = "Y" ;<br>
float int(lat, lon) ;<br>
int:units = "deg_C" ;<br>
int:_FillValue = 1.e+32f ;<br>
int:long_name = "Mean intensity" ;<br>
float int1(lat, lon) ;<br>
int1:units = "deg_C" ;<br>
int1:_FillValue = 1.e+32f ;<br>
int1:long_name = "Mean intensity in January" ;<br>
float int2(lat, lon) ;<br>
int2:units = "deg_C" ;<br>
int2:_FillValue = 1.e+32f ;<br>
int2:long_name = "Mean intensity in February" ;<br>
float int3(lat, lon) ;<br>
int3:units = "deg_C" ;<br>
int3:_FillValue = 1.e+32f ;<br>
int3:long_name = "Mean intensity in March" ;<br>
float int4(lat, lon) ;<br>
<br>
<br>
.......}<br>
It is possible for me to read each one of them using sdfopen. But when it comes to open them with xdfopen using the TEMPLATE option, it gives me this error message:<br>
<br>
gadxdf error: Missing or invalid dimension size.<br>
<br>
--> The invalid description file record is:<br>
<br>
--> edef 24 names min_3d_90perc min_4d_90perc min_5d_90percperc min_6d_90perc min_3d_95percperc min_4d_95perc min_5d_95perc min_6d_95perc min_3d_99perc min_4d_99perc min_5d_99perc min_6d_99perc max_3d_90perc max_4d_90perc max_5d_90perc max_6d_90perc max_3d_95perc max_4d_95perc max_5d_95perc max_6d_95perc max_3d_99perc max_4d_99perc max_5d_99perc max_6d_99perc<br>
<br>
The data file was not opened.<br>
<br>
This is my ctl script:<br>
<br>
</div></div>DSET /research/geog/data2/DATA/<wbr>kg312/Fortran/IND2_ERA_1_1_%<a href="http://e_stat.nc" rel="noreferrer" target="_blank">e_<wbr>stat.nc</a><<a href="http://e_stat.nc" rel="noreferrer" target="_blank">http://e_stat.nc</a>><br>
<span class="">DTYPE NETCDF<br>
OPTIONS template<br>
EDEF 24 NAMES min_3d_90perc min_4d_90perc min_5d_90percperc min_6d_90perc min_3d_95percperc min_4d_95perc min_5d_95perc min_6d_95perc min_3d_99perc min_4d_99perc min_5d_99perc min_6d_99perc max_3d_90perc max_4d_90perc max_5d_90perc max_6d_90perc max_3d_95perc max_4d_95perc max_5d_95perc max_6d_95perc max_3d_99perc max_4d_99perc max_5d_99perc max_6d_99perc<br>
VARS 111<br>
int 1 99 int<br>
int1 1 99 int1<br>
int2 1 99 int2<br>
int3 1 99 int3<br>
....<br>
ENDVARS<br>
<br>
I really don't understand that. Is is because my netCDF files are 2D (if this was a problem I don't think I would be able to open them using sdfopen)?<br>
Your help is more than welcome.<br>
<br>
Cheers<br>
<br>
GUIGMA<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><mailto:<a href="mailto:gradsusr@gradsusr.org">g<wbr>radsusr@gradsusr.org</a>><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br>
<br>
<br>
</span>--<br>
Jeff Duda, Research Scientist<br>
<br>
University of Colorado Boulder<br>
<br>
Cooperative Institute for Research in Environmental Sciences<br>
<br>
NOAA/OAR/ESRL/Global Systems Division<br>
<br>
Boulder, CO<br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<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/<wbr>listinfo/gradsusr</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font size="2"><span>Jeff Duda, Research Scientist<br>
</span></font><p style="margin-bottom:0.0001pt"><font size="2"><span><span>University of Colorado Boulder</span></span></font></p><font size="2"><span>
</span></font><p style="margin-bottom:0.0001pt"><font size="2"><span><span>Cooperative Institute for Research in Environmental Sciences</span></span></font></p><font size="2"><span>
</span></font><p style="margin-bottom:0.0001pt"><font size="2"><span><span>NOAA/OAR/ESRL/Global Systems Division</span></span></font></p><font size="2"><span>
<span>Boulder, CO</span></span></font>
</div></div></div></div></div></div></div></div></div></div></div>
</div>