[gdal-dev] Gdalwarp with geolocation Array and nodata value

Andre Joost andre+joost at nurfuerspam.de
Sun Apr 21 23:43:30 PDT 2019


Dear list,

as a follow-up to 
https://gis.stackexchange.com/questions/319147/using-gdalwarp-for-reprojecting-netcdf-file 
with a sample netcdf file linked in the comments:

The netcdf (really HDF5) contains lat and lon bands to reference the 
cells to WGS84 coordinates. Unfortunately, some rows contain nodata 
values for the monitored parameters and the lat-lon coordinates. This 
seems to break gdalwarp -geoloc.

My workaround is to create a vrt file for the requested subdataset, 
manually remove the GCP points with nodata values, and gdalwarp without 
the -geoloc option (i.e. use the remaining GCPs).

Is there a config option for GDALwarp to omit those nodata values in the 
geolocation array? Or is it worth to open a ticket for it?


Greetings,
Andre Joost



More information about the gdal-dev mailing list