Skip to content

Commit

Permalink
add history note; update docstrings for #387
Browse files Browse the repository at this point in the history
  • Loading branch information
emlys committed Apr 9, 2024
1 parent 9e9403a commit 65440da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Unreleased Changes
* Our github actions for building python distributions now use
`actions/setup-python@v5`, which uses node 20.
https://github.com/natcap/pygeoprocessing/issues/384
* ``warp_raster`` and ``build_overviews`` no longer raise ``ValueError``s if
called with an invalid resampling algorithm. We now fall back to the
underlying GDAL functions' error messages.
https://github.com/natcap/pygeoprocessing/issues/387
2.4.3 (2024-03-06)
------------------
Expand Down
7 changes: 4 additions & 3 deletions src/pygeoprocessing/geoprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2435,7 +2435,8 @@ def warp_raster(
the x and y pixel size in projected units.
target_raster_path (string): the location of the resized and
resampled raster.
resample_method (string): the resampling technique, one of,
resample_method (string): the resampling algorithm. Must be a valid
resampling algorithm for `gdal.WarpRaster`, one of:
'rms | mode | sum | q1 | near | q3 | average | cubicspline |
bilinear | max | med | min | cubic | lanczos'
target_bb (sequence): if None, target bounding box is the same as the
Expand Down Expand Up @@ -4579,7 +4580,8 @@ def build_overviews(
overviews. In GeoTiffs, this builds internal overviews when
``internal=True``, and external overviews when ``internal=False``.
resample_method='near' (str): The resample method to use when
building overviews. Must be one of,
building overviews. Must be a valid resampling method for
``gdal.GDALDataset.BuildOverviews``, one of
'rms | mode | sum | q1 | near | q3 | average | cubicspline |
bilinear | max | med | min | cubic | lanczos'.
overwrite=False (bool): Whether to overwrite existing overviews, if
Expand All @@ -4603,7 +4605,6 @@ def build_overviews(
Returns:
``None``
"""
gdal.UseExceptions()
def overviews_progress(*args, **kwargs):
pct_complete, name, other = args
percent = round(pct_complete * 100, 2)
Expand Down

0 comments on commit 65440da

Please sign in to comment.