Re: cannot write raster w/ max = inf

Markus Neteler <[email protected]>
Newsgroups gmane.comp.gis.grass.user
Message-ID <CALFmHhv3-gykcGD9RATEGsqDSbY6oHQCY84YRNYQtbcTM0+AuA@mail.gmail.com>
Hi Ken,

On Sat, Nov 11, 2017 at 12:25 AM, Ken Mankoff <[email protected]> wrote:
> Dear GRASS list,
>
> I have a GeoTIFF that I can read in to a raster.

Can you please post the output of

gdalinfo -mm your_raster_map
?
> ~r.info~ reports "max = inf".

Sounds like "unusual"...

> If I try to write it out as a raster with ~r.out.gdal~ I get an error (below)

That is likely a error due to above problem.

Markus

> and the file is not saved to disk. I can't figure out how
> to replace "inf" values with ~r.mapcalc~. Can someone suggest how to work with this data?
>
> Thanks,
>
>   -k.
>
>
> Checking GDAL data type and nodata value...
>  100%
> WARNING: Selected GDAL datatype does not cover data range.
> WARNING: GDAL datatype: Float32, range: -3.4e+38 - 3.4e+38
> WARNING: Raster map <foo> range: 0.393347 - inf
> WARNING: Raster export results in data loss.
> Using GDAL data type <Float32>
> Input raster map contains cells with NULL-value (no-data). The value nan
> will be used to represent no-data values in the input map. You can specify
> a nodata value with the nodata option.
> ERROR: Raster export aborted.
> _______________________________________________
> 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.