Hot answers tagged

2 votes
Accepted

Create multiband raster in Python from X, Y

You're doing a lot of unnecessary looping. You can create your random values in a single array and you don't need a dataframe. import numpy as np import rasterio as rio from rasterio.transform import ...
user2856's user avatar
  • 64k
1 vote
Accepted

Differences in raster statistics using gdal and gdalinfo

With your Python method by using the first "True" you ask GDAL to compute approximated statistics . stats = srcband.GetStatistics(True, True) See the documentation https://gdal.org/doxygen/...
user30184's user avatar
  • 62k
1 vote
Accepted

Rasters not having the same total area for classes within the same study area

I also do not believe this is an Origin/Nap issue. I believe that the reason for this is that the SLOPE calculations were performed after the DEM was clipped to the study extent. Because the slope ...
JasonInVegas's user avatar
  • 1,780
1 vote

Rasters not having the same total area for classes within the same study area

I do not believe that this is an origin/snap issue. Although, it is always prudent to set an analysis environment to control for cell size, origin/snap and mask. There are many operators that result ...
Jeffrey Evans's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible