I have several GeoTIFFs that I'm working with to create contours using gdal_contour. One of them crashes the utility. gdalinfo tells me that the computed min values for band 1 and 2 are -340282346638528860000000000000000000000... This seems to be creating the problem as none of the others are so irrational (think in the single digit range / near sea-level).
Is there a way to "fix" this geotiff by replacing anything below 0 with a reasonable value such as 1 or even 0? And can I simultaneously replace "nodata" values with 0 or 1?