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 ...
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/...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
raster × 9770qgis × 2731
r × 1723
arcgis-desktop × 1658
gdal × 878
python × 813
coordinate-system × 484
arcmap × 436
postgis × 396
clip × 396
arcpy × 390
geotiff-tiff × 384
dem × 372
raster-calculator × 354
vector × 337
polygon × 308
grass-gis × 288
shapefile × 275
pyqgis × 235
arcgis-10.0 × 215
rasterio × 204
arcgis-pro × 200
spatial-analyst × 180
geoserver × 177
arcgis-10.1 × 176