[GRASS-dev] Adding NetCDF to GRASS7 configure

Dear all,
i would like to add a new configure option to enable NetCDF support in
GRASS7. The new module r3.out.netcdf that exports 3d raster maps as
three dimensional (space or space + time) NetCDF files and several
other planed modules will need this library. My question is how to
integrate NetCDF in the configuration process? I have patched the
files "configure.in" and "Platform.make.in". Do i need to modify any
additional files? How should i generate the configure script with
autoconf, so that it is compatible with the current configure script?

The "configure.in" and "Platform.make.in" patch is attached.

Many thanks in advance.
Best regards
Soeren

(attachments)

netcdf.diff (2.74 KB)

On 16/05/12 10:58, Sören Gebbert wrote:

Dear all,
i would like to add a new configure option to enable NetCDF support in
GRASS7. The new module r3.out.netcdf that exports 3d raster maps as
three dimensional (space or space + time) NetCDF files and several
other planed modules will need this library.

Out of curiosity: can't this be handled via the GDAL NetCDF driver ?

Moritz

Hi,

2012/5/16 Sören Gebbert <soerengebbert@googlemail.com>:

integrate NetCDF in the configuration process? I have patched the
files "configure.in" and "Platform.make.in". Do i need to modify any
additional files? How should i generate the configure script with
autoconf, so that it is compatible with the current configure script?

running autoconf2.13 to update configure script should be enough.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

Out of curiosity: can't this be handled via the GDAL NetCDF driver ?

No, since GDAL does not support the third dimension of 3d raster maps.
r3.out.netcdf supports space and time as third dimension.

Best regards
Soeren

Moritz

Hi,

[snip]

running autoconf2.13 to update configure script should be enough.

Thanks, that seems to work. :slight_smile:

Best regards
Soeren

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa