<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
All,<br>
<br>
I am trying to view a netcdf file in grass via gdal. The netcdf data
is on a projected grid so the latitudes and longitudes are are unique
at each point (i.e. 2D coordinate variables).<br>
gdal doesnt seem to understand the georeferencing information whn I
try to follow the CF-1.0 specs on multi-dimensional coordinate
variables,<br>
<a class="moz-txt-link-freetext"
href="http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html#id2888361">http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html#id2888361</a><br>
Below is the header info from ncdump and the resulting info coming from
gdalinfo. Can you use multi-dimensional coordinate variables in
conjunction with gdal?<br>
If so, can you advise what I need to do to make my netcdf file work
with gdal?<br>
<br>
Thank you,<br>
Aaron<br>
<br>
<b>NCDUMP output:</b><br>
>>>>> ncdump -h conc_20081208071500.nc <br>
netcdf conc_20081208071500 {<br>
dimensions:<br>
Time = UNLIMITED ; // (1 currently)<br>
DateStrLen = 14 ;<br>
xc = 299 ;<br>
yr = 301 ;<br>
nspecies = 1 ;<br>
nageclass = 1 ;<br>
variables:<br>
char Times(Time, DateStrLen) ;<br>
Times:long_name = "time" ;<br>
Times:units = "minutes since Wed Apr 8 15:49:19 2009" ;<br>
float wet(Time, nageclass, nspecies, yr, xc) ;<br>
wet:long_name = "WET DEPOSITION" ;<br>
wet:units = "ppm" ;<br>
wet:coordinates = "lon lat" ;<br>
float dry(Time, nageclass, nspecies, yr, xc) ;<br>
dry:long_name = "DRY DEPOSITION" ;<br>
dry:units = "ppm" ;<br>
dry:coordinates = "lon lat" ;<br>
float xc(xc) ;<br>
xc:long_name = "x-coordinate in Cartesian system" ;<br>
xc:units = "m" ;<br>
float yr(yr) ;<br>
yr:long_name = "y-coordinate in Cartesian system" ;<br>
yr:units = "m" ;<br>
float nspecies(nspecies) ;<br>
nspecies:long_name = "number of species" ;<br>
nspecies:standard_name = "number_of_species" ;<br>
float nageclass(nageclass) ;<br>
nageclass:long_name = "number of age classes" ;<br>
nageclass:standard_name = "number_of_ageclasses" ;<br>
float lat(yr, xc) ;<br>
lat:long_name = "latitude" ;<br>
lat:units = "degrees_north" ;<br>
float lon(yr, xc) ;<br>
lon:long_name = "longitude" ;<br>
lon:units = "degrees_east" ;<br>
<br>
<b>GDALINFO output:</b><br>
>>>>gdalinfo NETCDF:"conc_20081208071500.nc":dry<br>
Driver: netCDF/Network Common Data Format<br>
Files: none associated<br>
Size is 299, 301<br>
Coordinate System is `'<br>
Origin = (0.500000000000000,301.500000000000000)<br>
Pixel Size = (1.000000000000000,-1.000000000000000)<br>
Metadata:<br>
NC_GLOBAL#title=FLEXPART Concentration Grids<br>
NC_GLOBAL#institution=State Climate Office of NC<br>
NC_GLOBAL#history=Created on Wed Apr 8 15:49:19 2009<br>
NC_GLOBAL#reference=<a class="moz-txt-link-freetext"
href="http://www.nc-climate.ncsu.edu">http://www.nc-climate.ncsu.edu</a><br>
NC_GLOBAL#Conventions=CF-1.0<br>
dry#long_name=DRY DEPOSITION<br>
dry#units=C<br>
dry#coordinates=lon lat<br>
xc#long_name=x-coordinate in Cartesian system<br>
xc#units=m<br>
yr#long_name=y-coordinate in Cartesian system<br>
yr#units=m<br>
nspecies#long_name=number of species<br>
nspecies#standard_name=number_of_species<br>
nageclass#long_name=number of age classes<br>
nageclass#standard_name=number_of_ageclasses<br>
Corner Coordinates:<br>
Upper Left ( 0.500, 301.500) <br>
Lower Left ( 0.5000000, 0.5000000) <br>
Upper Right ( 299.500, 301.500) <br>
Lower Right ( 299.500, 0.500) <br>
Center ( 150.000, 151.000) <br>
Band 1 Block=299x1 Type=Float32, ColorInterp=Undefined<br>
NoData Value=9.96920996838686905e+36<br>
Metadata:<br>
NETCDF_VARNAME=dry<br>
NETCDF_DIMENSION_Time=1<br>
NETCDF_DIMENSION_nageclass=1.000000<br>
NETCDF_DIMENSION_nspecies=1.000000<br>
</body>
</html>