<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi all,<br>
<br>
I try to display netCDF file with the GDAL driver, but no succeed.<br>
<br>
The gdalinfo give a good response, but I don't know how I can specifie
my variable and the depth for the layer in the mapfile (it is a 3
dimension variable).<br>
Can anyone help me ?<br>
<br>
Thanks in advance,<br>
Tony<br>
<br>
gdal from CVS today<br>
mapserver 4.4.1<br>
on linux AS<br>
<br>
gdalinfo :<br>
<small><font face="Courier New, Courier, monospace">Driver:
netCDF/network Common Data Format<br>
Size is 8, 129<br>
Coordinate System is `'<br>
Origin = (0.000000,0.000000)<br>
Pixel Size = (1.00000000,1.00000000)<br>
Corner Coordinates:<br>
Upper Left ( 0.0000000, 0.0000000)<br>
Lower Left ( 0.000, 129.000)<br>
Upper Right ( 8.0000000, 0.0000000)<br>
Lower Right ( 8.000, 129.000)<br>
Center ( 4.0000000, 64.5000000)<br>
Band 1 Block=8x1 Type=Float32, ColorInterp=Undefined<br>
...<br>
...<br>
</font></small><br>
The header of the netCDF is like this :<br>
<small><font face="Courier New, Courier, monospace">netcdf
mercator_psy2v1_mersea_grid1o8_med_b20050105_f200501189999 {<br>
dimensions:<br>
depth = 8 ;<br>
latitude = 129 ;<br>
longitude = 341 ;<br>
variables:<br>
float depth(depth) ;<br>
depth:valid_min = 5.f ;<br>
depth:valid_max = 2000.f ;<br>
depth:units = "m" ;<br>
depth:positive = "down" ;<br>
depth:unit_long = "Meter" ;<br>
depth:long_name = "depth" ;<br>
depth:standard_name = "depth" ;<br>
depth:axis = "Z" ;<br>
float latitude(latitude) ;<br>
latitude:valid_min = 30.f ;<br>
latitude:valid_max = 46.f ;<br>
latitude:step = 0.125f ;<br>
latitude:units = "degrees_north" ;<br>
latitude:unit_long = "Degrees North" ;<br>
latitude:long_name = "latitude" ;<br>
latitude:standard_name = "latitude" ;<br>
latitude:axis = "Y" ;<br>
float longitude(longitude) ;<br>
longitude:valid_min = -6.f ;<br>
longitude:valid_max = 36.5f ;<br>
longitude:step = 0.125f ;<br>
longitude:units = "degrees_east" ;<br>
longitude:unit_long = "Degrees East" ;<br>
longitude:long_name = "longitude" ;<br>
longitude:standard_name = "longitude" ;<br>
longitude:axis = "X" ;<br>
float temperature(depth, latitude, longitude) ;<br>
temperature:long_name = "temperature" ;<br>
temperature:standard_name =
"sea_water_potential_temperature" ;<br>
temperature:units = "degC" ;<br>
temperature:unit_long = "Degrees Celcius" ;<br>
temperature:missing_value = 1.e+35f ;<br>
temperature:_FillValue = 1.e+35f ;<br>
temperature:valid_min = 9.834617f ;<br>
temperature:valid_max = 20.74316f ;<br>
// global attributes:<br>
:title = "MERCATOR PSY2V1R1" ;<br>
:easting = "longitude" ;<br>
:northing = "latitude" ;<br>
:history = "2005/01/ 5 19:58:31 MERCATOR Netcdf
creation" ;<br>
:source = "MERCATOR PSY2V1" ;<br>
:institution = "GIP MERCATOR OCEAN" ;<br>
:references = <a class="moz-txt-link-rfc2396E" href="http://www.mercator-ocean.fr">"http://www.mercator-ocean.fr"</a> ;<br>
:comment = " " ;<br>
:conventions = "CF-1.0" ;<br>
:domain_name = "MED" ;<br>
:field_type = "mean" ;<br>
:field_date = "2005-01-18 00:00:00" ;<br>
:field_julian_date = 20106 ;<br>
:julian_day_unit = "days since 1950-01-01 00:00:00" ;<br>
:forecast_range = "13-day forecast" ;<br>
:forecast_type = "forecast" ;<br>
:bulletin_date = "2005-01-05 00:00:00" ;<br>
:bulletin_type = "operational" ;<br>
:longitude_min = -6.f ;<br>
:longitude_max = 36.5f ;<br>
:latitude_min = 30.f ;<br>
:latitude_max = 46.f ;<br>
:z_min = 5.f ;<br>
:z_max = 2000.f ;<br>
}<br>
</font></small><br>
<br>
</body>
</html>