Re: cannot write raster w/ max = inf

Markus Metz <[email protected]>
Newsgroups gmane.comp.gis.grass.user
Message-ID <CAG+h=FHskpLF3sBiMd8=F1gJEMEYn=qFCqVp2mNhzRJGLM21cQ@mail.gmail.com>
On Sat, Nov 11, 2017 at 7:24 AM, Ken Mankoff <[email protected]> wrote:
>
>
> On 2017-11-10 at 23:37, Markus Neteler <[email protected]> wrote:
> > gdalinfo -mm your_raster_map
>
> I can post the full output, but I assume the part you are interested is
the diff between the normal and the '-mm' option, which is:
>
>     Computed Min/Max=0.380,inf
>
> Which are the values reported by ~r.info~.
>
> It may be a bug with the upstream producer. If inf is invalid, I can let
them know.

inf is a perfectly valid number, meaning infinity. Unfortunately, a test
for inf is only available with C standard 99, and I don't know of a manual
test in C for inf (or -inf) to avoid C 99. The bug is in r.out.gdal, not
testing for input inf values.

Markus M

> I have not seen mention of inf anywhere online (searching GeoTIFF, GDAL,
or GRASS), but it makes it hard to search because INF is a file format.
>
>   -k.
> _______________________________________________
> grass-user mailing list
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/grass-user

_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.