Ryan Grout

Results 42 issues of Ryan Grout

Avoid reading potentially large rasters in rio clip by chunking the read operations. Added a test to for the basic functionality of clip to ensure the content of the clipped...

This PR changes the return type of `xy()` and `rowcol()` to be numpy arrays instead of coercing to Python lists. These functions now use numpy internally to make the computation...

@sgillies This PR is an attempt to resolve #3111. Before, two windows intersect if they had any common interior point. This changes that definition to mean that two windows intersect...

This issue is intended to track the discussion regarding the effort to make bounds less ambiguous. Bits and pieces of this discussion have been spread across several threads and I...

Why is a hardcoded epsilon being used instead of using the global epsilon value?

After meeting with @RobHanna-NOAA, I noticed several uses of `.block_windows()` in the code base. The way this function is used in the code base leads me to believe that this...

enhancement

Experiment with adding the threadsafe flag to read-only rasters. The new functionality are explained here: https://gdal.org/en/stable/development/rfc/rfc101_raster_dataset_threadsafety.html One section of note: > A Python equivalent of multireadtest has been written. Scalability...

With certain transforms, directly inverting the transform matrix leads to subtle numerical inaccuracies. Using np.linalg.solve avoids these issues. Replaces #3313 Fixes #3310

This addresses a very awkward usage of masking. Only datasets are accepted in the functions in `rasterio.mask` making it very awkward to mask raster data in passes. Most of the...

When using rasterio with numpy >=2.0, some of the code in rasterio results in numpy scalar objects instead of Python scalars. I'm not sure what the path forward would be....