I imported a raster file (tif) into the GRASS GIS program using
r.import and later
r.in.gdal (every time the same problem).
Raster map statistics showed:
(Wed May 20 20:11:59 2020) r.univar map=rasterData total null and non-null cells: 1 total null cells: 1 Of the non-null cells: ---------------------- n: 0 minimum: nan maximum: nan range: nan mean: nan mean of absolute values: nan standard deviation: nan variance: nan variation coefficient: nan % sum: nan (Wed May 20 20:11:59 2020) Polecenie zakończone (0 sec)
Below is my tiff file
There is no problem with importing the file to ArcGIS and performing operations on it, but I want to use GRASS because of the mcda plugins e.g
When I run plugins with such imported layers I get an error:
Niewłaściwa mapa nan Parse error ERROR: parse error ERROR: An error occurred while running r.mapcalc with expression: _rasterData=(rasterData/sqrt(nan))*0.6
I guess it's related to
nan values in statistics. Error is connected with
standardizedNormalizedMatrix method of plugin. Source code is in the link above.
After importing to GRASS GIS, the raster is displayed correctly. Has anyone encountered such or similar problem or could look what is wrong with these tif files? Maybe some additional transformations are needed?