Skip to content

Commit

Permalink
DOC: Add info about the new sampling function. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Oct 21, 2024
1 parent ed0c39a commit a51e974
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
History
=======

0.18.1 (2024-XX-XX)
-------------------

New Features
~~~~~~~~~~~~
- Add a function called ``sample_window`` to remsample a raster dataset
using a window size and a ``rasterio`` supported resampling method.
This is an efficient way of sampling large raster datasets without
reading the entire dataset into memory. The function returns a generator
that yields the sampled values in the order of the input coordinates.
This function is based on the ``rasterio.sample.sample_gen`` function.

0.18.0 (2024-10-05)
-------------------

Expand Down
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ These utilities are:
(bounding box, list of coordinates, or any ``shapely.geometry``) to
a new CRS.
- ``gtiff2vrt``: For converting a list of GeoTIFF files to a VRT file.
- ``sample_window``: Sample a raster dataset at specified coordinates
using a window size and a ``rasterio`` supported resampling method.
This is an efficient way of sampling large raster datasets without
reading the entire dataset into memory. The function returns a generator
that yields the sampled values in the order of the input coordinates.

You can find some example notebooks `here <https://github.com/hyriver/HyRiver-examples>`__.

Expand Down

0 comments on commit a51e974

Please sign in to comment.