Hi Karin,<br>The descriptor file has been corrected according to your advise, but it does not work.<br>ga-> xdfopen data.ctl<br>Scanning Descriptor File: data.ctl<br>XDFOpen Error: Invalid variable record<br> --> The invalid description file record is:<br>
--> aot 0 t,y,x<br> The data file was not opened.<br><br>Probably it would be easier to prepare a script without using template.<br>Thanks for help.<br><br>Pavel<br><br><br><br><div class="gmail_quote">On Tue, Jun 10, 2008 at 1:05 PM, Karin Meier-Fleischer <<a href="mailto:karin.meier-fleischer@zmaw.de">karin.meier-fleischer@zmaw.de</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Pavel,<br>
<br>
first, you should delete the ZDEF line. For the variables it should not<br>
be a one it must be a zero:<div class="Ih2E3d"><br>
<br>
DSET ^%y4-%<a href="http://m2.nc" target="_blank">m2.nc</a><br>
OPTIONS template<br>
TITLE Variables<br>
UNDEF -999<br>
XDEF longitude 360 linear -179.500000 1.00000<br>
YDEF latitude 181 linear -89.5000000 1.000000<br></div><div class="Ih2E3d">
TDEF ftime 12 linear 01apr2000 1mo<br>
vars 8<br></div>
aot 0 t,y,x<br>
aot_land 0 t,y,x<div class="Ih2E3d"><br>
aot_water 0 t,y,x<br></div>
aot_dust 0 t,y,x<br>
angst 0 t,y,x<br>
small 0 t,y,x<br>
medium 0 t,y,x<br>
large 0 t,y,x<br>
endvars<br>
<br>
Hope this helps.<br>
<br>
Ciao, Karin<div class="Ih2E3d"><br>
---------------------------------\\---------------------------------------<br>
Karin Meier-Fleischer \\ Max-Planck-Institut fuer Meteorologie<br>
Phone: +49-40-41173-431 \\ Abteilung Modelle & Daten<br>
FAX: +49-40-41173-476 \\ Bundesstr. 53<br>
Email: <a href="mailto:karin.meier-fleischer@zmaw.de" target="_blank">karin.meier-fleischer@zmaw.de</a> \\ D-20146 Hamburg<br>
<a href="http://www.mad.zmaw.de/" target="_blank">http://www.mad.zmaw.de/</a> \\ Germany<br>
---------------------------------------\\---------------------------------<br>
<br></div><div><div></div><div class="Wj3C7c">
On Tue, 10 Jun 2008, Pavel Kishcha wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you Karin,<br>
In the nedcdf file the dimention names are ftime, latitude, longitude for<br>
TDEF, YDEF, XDEF respectively. ZDEF is not mentioned there (see output<br>
"ncdump -h" below).<br>
<br>
The file data.ctl has been updated to include dimention names except for<br>
ZDEF, but the problem remains:<br>
<br>
ga-> xdfopen data.ctl<br>
Scanning Descriptor File: data.ctl<br>
XDFOpen Error: Invalid variable record<br>
--> The invalid description file record is:<br>
--> aot 1 t,y,x<br>
The data file was not opened.<br>
***Here is data.ctl<br>
<br>
DSET ^%y4-%<a href="http://m2.nc" target="_blank">m2.nc</a><br>
OPTIONS template<br>
TITLE Variables<br>
UNDEF -999<br>
XDEF longitude 360 linear -179.500000 1.00000<br>
YDEF latitude 181 linear -89.5000000 1.000000<br>
ZDEF level 1 levels 0<br>
TDEF ftime 12 linear 01apr2000 1mo<br>
vars 8<br>
aot 1 t,y,x<br>
aot_land 1 t,y,x<br>
aot_water 1 t,y,x<br>
aot_dust 1 t,y,x<br>
angst 1 t,y,x<br>
small 1 t,y,x<br>
medium 1 t,y,x<br>
large 1 t,y,x<br>
endvars<br>
<br>
<br>
On Tue, Jun 10, 2008 at 8:53 AM, Karin Meier-Fleischer <<br>
<a href="mailto:karin.meier-fleischer@zmaw.de" target="_blank">karin.meier-fleischer@zmaw.de</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Pavel,<br>
<br>
the XDEF, YDEF, ZDEF and TDEF needs the dimension names given in the<br>
netcdf file, like<br>
<br>
<br>
dset ^%y4-%<a href="http://m2.nc" target="_blank">m2.nc</a><br>
options template<br>
XDEF lon 360 linear -179.500000 1.00000<br>
YDEF lat 181 linear -89.5000000 1.000000<br>
ZDEF level 1 levels 0<br>
TDEF time 12 linear 01apr2000 1mo<br>
vars 8<br>
aot 1 t,y,x<br>
aot_land 1 t,y,x<br>
aot_water 1 t,y,x<br>
aot_dust 1 t,y,x<br>
angst 1 t,y,x<br>
small 1 t,y,x<br>
medium 1 t,y,x<br>
large 1 t,y,x<br>
endvars<br>
<br>
<br>
Cia, Karin<br>
---------------------------------\\---------------------------------------<br>
Karin Meier-Fleischer \\ Max-Planck-Institut fuer Meteorologie<br>
Phone: +49-40-41173-431 \\ Abteilung Modelle & Daten<br>
FAX: +49-40-41173-476 \\ Bundesstr. 53<br>
Email: <a href="mailto:karin.meier-fleischer@zmaw.de" target="_blank">karin.meier-fleischer@zmaw.de</a> \\ D-20146 Hamburg<br>
<a href="http://www.mad.zmaw.de/" target="_blank">http://www.mad.zmaw.de/</a> \\ Germany<br>
---------------------------------------\\---------------------------------<br>
<br>
<br>
</blockquote>
<br>
*** Here is the outout "ncdump -h"<br>
<br>
netcdf 2000-04 {<br>
dimensionions:<br>
longitude = 360 ;<br>
latitude = 181 ;<br>
ftime = 1 ;<br>
variables:<br>
double longitude(longitude) ;<br>
longitude:units = "degree_east" ;<br>
longitude:standard_name = "longitude" ;<br>
double latitude(latitude) ;<br>
latitude:units = "degree_north" ;<br>
latitude:standard_name = "latitude" ;<br>
double ftime(ftime) ;<br>
ftime:units = "seconds since ??" ;<br>
ftime:standard_name = "ftime" ;<br>
double aot(ftime, latitude, longitude) ;<br>
aot:units = "kg m-2" ;<br>
aot:standard_name = "total_aerosol_optical_thickness" ;<br>
aot:coordinates = "ftime latitude longitude" ;<br>
double aot_land(ftime, latitude, longitude) ;<br>
aot_land:units = "kg m-2" ;<br>
aot_land:standard_name = "total_aerosol_optical_thickness" ;<br>
aot_land:coordinates = "ftime latitude longitude" ;<br>
double aot_water(ftime, latitude, longitude) ;<br>
aot_water:units = "kg m-2" ;<br>
aot_water:standard_name = "total_aerosol_optical_thickness"<br>
;<br>
aot_water:coordinates = "ftime latitude longitude" ;<br>
double aot_dust(ftime, latitude, longitude) ;<br>
aot_dust:units = "kg m-2" ;<br>
aot_dust:standard_name =<br>
"atmosphere_content_of_dust_aerosol" ;<br>
aot_dust:coordinates = "ftime latitude longitude" ;<br>
double angst(ftime, latitude, longitude) ;<br>
angst:units = "None" ;<br>
angst:standard_name = "angstrom_exponent" ;<br>
angst:coordinates = "ftime latitude longitude" ;<br>
double small(ftime, latitude, longitude) ;<br>
small:units = "kg m-2" ;<br>
small:standard_name =<br>
"aerosol_optical_thickness_due_to_small_particles" ;<br>
small:coordinates = "ftime latitude longitude" ;<br>
double medium(ftime, latitude, longitude) ;<br>
medium:units = "kg m-2" ;<br>
medium:standard_name =<br>
"aerosol_optical_thickness_due_to_medium_particles" ;<br>
medium:coordinates = "ftime latitude longitude" ;<br>
double large(ftime, latitude, longitude) ;<br>
large:units = "kg m-2" ;<br>
large:standard_name =<br>
"aerosol_optical_thickness_due_to_large_particles" ;<br>
large:coordinates = "ftime latitude longitude" ;<br>
<br>
</blockquote>
</div></div></blockquote></div><br>