Bug #687

grdreformat: GDAL input driver ignores NaN value

Added by Florian about 2 years ago. Updated about 2 years ago.

Status:ClosedStart date:2015-03-17
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:Candidate for next minor release
Affected version:5.x-svn Platform:

Description

For example:

gmt grdmath -R0/10/0/10 -I1 X = foo.tif=gd:gtiff
gmt grdreformat foo.tif=gd///0 foo.nc

gmt grdinfo -M foo.nc
foo.nc: z_min: 0 at x = 0 y = 10 z_max: 10 at x = 10 y = 10
The expected result would have 11 nodes set to NaN.

This works with the netCDF input driver as this detour illustrates:

gmt grdreformat foo.tif=gd foo.tmp
gmt grdreformat foo.tmp=nf///0 foo.nc

gmt grdinfo -M foo.nc
foo.nc: z_min: 1 at x = 1 y = 10 z_max: 10 at x = 10 y = 10
foo.nc: 11 nodes (9.1%) set to NaN

History

#1 Updated by Joaquim about 2 years ago

  • Status changed from New to In Progress

OK, should be fixed in r14188

#2 Updated by Joaquim about 2 years ago

  • Status changed from In Progress to Resolved

#3 Updated by Florian about 2 years ago

  • Status changed from Resolved to Closed

OK, should be fixed in r14188

Thanks!

Also available in: Atom PDF