[FWTools] NetCDF format

Frank Warmerdam warmerdam at pobox.com
Mon Feb 6 21:43:35 EST 2006


On 2/3/06, Kolberg Sjur A <Sjur.A.Kolberg at sintef.no> wrote:
> Dear FWtools users,
>
> Has anyone any experience with the NetCDF format?
>
> Question 1, regarding GDAL: The documentation says that the NetCDF driver
> supports both creation and georeferencing, but doing the driver tests
> mentioned in the GDAL tutorial suggests that neither Create nor CreateCopy
> is supported. What is correct? (I haven't succeeded, both functions return a
> NULL).

Sjur,

Looking into the code, I see the write support was discarded
some time ago as part of a rewrite.  But the documentation
was never updated.  I'll try and fix that now.

> Question 2, regarding OpenEV: From a C++ program, I export a data set in
> NetCDF format (using NetCDF directly, not GDAL), and try to view it in
> OpenEV. The problem is that NetCDF requires that the coordinate vectors are
> exactly as long as the raster dimensions, and thus that the coordinates
> themselves are grid cell centers. When receiving these coordinates, OpenEV
> seems to interpret both the minima and the maxima as cell corners. Hence it
> shrinks all the cells by (n-1)/n in order to reach the other side of the
> ranges. Is there any other netCDF variable or attribute I can use to tell
> OpenEV about the true, outer boundaries of the raster?

I don't think so.  Perhaps you could file a bug report with
a reference to the file (or attaching the file).

> Qestion 3, not NetCDF at all: Is anyone in the process of writing a driver
> for Idrisi data?

I think the IDRISI people indicated they were planning
to do this for GDAL but I don't recall of anything coming
of it.   I'll ping them and see what the status is.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the FWTools mailing list