python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Clipping geodataframe points by raster extent in Python
Background
Thanks to the kind souls who answered my previous question here: Faster methods to create geodataframe from a Dask or Pandas dataframe, I have successfully imported my massive block model a...
William Taylor
Votes: 0
Answers: 1
Mask raster by extent in Python using rasterio
I want to clip one raster based on the extent of another (smaller) raster. First I determine the coordinates of the corners of the smaller raster using
import rasterio as rio
import gdal
from shapely....
justin fiedler
Votes: 0
Answers: 1
Python Mock an object's (rasterio.DatasetWriter) writing behaviour
I have a mock DatasetWriter object and a function to write an array into the object.
def write_dataset(dataset: DatasetWriter, image: np.ndarray):
dataset.write(image)
Now, I want to write a unit...
Lion Lai
Votes: 0
Answers: 0
accessing geospatial raster data with limited memory
I am following the Rasterio documentation to access the geospatial raster data downloaded from here -- a large tiff image. Unfortunately, I do not have enough memory so numpy throws an ArrayMemoryErro...
TylerSingleton
Votes: 0
Answers: 0