<div dir="ltr">Dear Grads users<div><br></div><div>I have a problem generating a ctl file to read 11 years of data downloaded from ECWMF. I can read individually with sdfopen, however, when I tried to create a ctl file I think I have problems declaring the variable. My ctl file looks like this</div><div><div><br></div><div>DSET ^q-%<a href="http://y4.nc">y4.nc</a></div><div>UNDEF -999.99</div><div>OPTIONS little_endian yrev zrev template</div><div>DTYPE netcdf</div><div>XDEF 111 linear 275.000000 0.500000</div><div>YDEF 135 linear -55.000000 0.500000</div><div>TDEF 16072 linear 00:00Z01jan1999 6hr<br></div><div>zdef 11 levels 1000.000000 925.000000 850.000000 700.000000 500.000000 300.000000 250.000000 200.000000 100.000000 20.000000 10.000000</div><div>vars 1<br></div><div>q 11 99 Specific humidity [kg kg**-1]</div><div>endvars</div></div><div><br></div><div>I read that I can not use 99 for my variable definition, however I&#39;m clueless about what to put in that line</div><div><br></div><div>The ncdump -h from an individual netcdf file looks like this</div><div><div>netcdf q-1999 {</div><div>dimensions:</div><div><span class="" style="white-space:pre">        </span>longitude = 111 ;</div><div><span class="" style="white-space:pre">        </span>latitude = 135 ;</div><div><span class="" style="white-space:pre">        </span>level = 11 ;</div><div><span class="" style="white-space:pre">        </span>time = UNLIMITED ; // (1460 currently)</div><div>variables:</div><div><span class="" style="white-space:pre">        </span>float longitude(longitude) ;</div><div><span class="" style="white-space:pre">                </span>longitude:units = &quot;degrees_east&quot; ;</div><div><span class="" style="white-space:pre">                </span>longitude:long_name = &quot;longitude&quot; ;</div><div><span class="" style="white-space:pre">        </span>float latitude(latitude) ;</div><div><span class="" style="white-space:pre">                </span>latitude:units = &quot;degrees_north&quot; ;</div><div><span class="" style="white-space:pre">                </span>latitude:long_name = &quot;latitude&quot; ;</div><div><span class="" style="white-space:pre">        </span>int level(level) ;</div><div><span class="" style="white-space:pre">                </span>level:units = &quot;millibars&quot; ;</div><div><span class="" style="white-space:pre">                </span>level:long_name = &quot;pressure_level&quot; ;</div><div><span class="" style="white-space:pre">        </span>int time(time) ;</div><div><span class="" style="white-space:pre">                </span>time:units = &quot;hours since 1900-01-01 00:00:0.0&quot; ;</div><div><span class="" style="white-space:pre">                </span>time:long_name = &quot;time&quot; ;</div><div><span class="" style="white-space:pre">                </span>time:calendar = &quot;gregorian&quot; ;</div><div><span class="" style="white-space:pre">        </span>short q(time, level, latitude, longitude) ;</div><div><span class="" style="white-space:pre">                </span>q:scale_factor = 3.60802682733904e-07 ;</div><div><span class="" style="white-space:pre">                </span>q:add_offset = 0.0118165291556829 ;</div><div><span class="" style="white-space:pre">                </span>q:_FillValue = -32767s ;</div><div><span class="" style="white-space:pre">                </span>q:missing_value = -32767s ;</div><div><span class="" style="white-space:pre">                </span>q:units = &quot;kg kg**-1&quot; ;</div><div><span class="" style="white-space:pre">                </span>q:long_name = &quot;Specific humidity&quot; ;</div><div><span class="" style="white-space:pre">                </span>q:standard_name = &quot;specific_humidity&quot; ;</div><div><br></div><div>// global attributes:</div><div><span class="" style="white-space:pre">                </span>:Conventions = &quot;CF-1.0&quot; ;</div><div><span class="" style="white-space:pre">                </span>:history = &quot;2015-11-03 16:49:08 GMT by grib_to_netcdf-1.13.1: grib_to_netcdf /data/data04/scratch/netcdf-atls20-a562cefde8a29a7288fa0b8b7f9413f7-AHRBQo.target -o /data/data04/scratch/netcdf-atls20-a562cefde8a29a7288fa0b8b7f9413f7-ZNlmj2.nc -utime&quot; ;</div><div>}</div></div><div><br></div><div>Best regards</div><div>Luis</div></div>