[gdal-dev] Help using gdal_grid when src_datasource is a NetCDF File
Ewan Tarrant
ermt at ghgsat.com
Thu Aug 22 09:03:24 PDT 2024
Hello gdal community!
I would like to use gdal_grid (https://gdal.org/programs/gdal_grid.html) to rasterize scattered data stored in a NetCDF file. My scattered data consists of a single scalar value, z, defined at an Easting and Northing coordinate pair. I also have an EPSG code. I am having difficulty structuring my NetCDF file so that gdal_grid is able to understand it. I have tried all three methods documented in the NetCDF Raster Driver documentation - https://gdal.org/drivers/raster/netcdf.html#georeference
1.
UNIDATA CF-1 convention
2.
lat/lon grid array
3.
Following metadata directly (via e.g. Northernmost_Northing,Southernmost_Northing etc)
but have been unsuccessful in getting gdal_grid to understand my netCDF file. I have built gdal 3.8.3 from source and I have enabled `-DGDAL_ENABLE_DRIVER_NETCDF=ON`.
Would it be possible to provide a minimal working example netCDF schema (or output of e.g. ncdump) that gdal_grid can recognize?
Thanks in advance for your help,
Ewan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240822/c54500e3/attachment-0001.htm>
More information about the gdal-dev
mailing list