* Add inline descriptions from gdalwarp
Add short descriptions of each resampling method from gdalwarp.
If this isn't wanted, alternatively it might be a good idea to add a link to gdalwarp's resampling methods https://gdal.org/programs/gdalwarp.html#cmdoption-gdalwarp-r
* Add enums.Resampling reference to warp.resampling
Add enums.Resampling reference to warp.resampling parameters to try and clarify documentation.
* Remove redundant list
Removing the list of resampling methods, redundant if linking directly to enums.Resampling's list
Also add "int" back in for type
* Moving resampling method details to main docstring
* Update formatting to match docstring styleguide
Update formatting to match docstring styleguide https://numpydoc.readthedocs.io/en/latest/format.html#class-docstring
* Try to fix formatting with Notes section
* Update rasterio/enums.py
Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
add newline to EOF
instead of env var, fallback to glob for gdal*.dll in PATH
update changelog
remove backtick
Co-authored-by: Sean Gillies <sean@mapbox.com>
* ENH: Add version to CRS.to_wkt()
* Update tests/test__crs.py for PROJ 8
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
* Update tests/test__crs.py for PROJ 8
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
* Update tests/test__crs.py for PROJ 8
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
* Update tests/test__crs.py for PROJ 8
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
* morph_to_esri_dialiect docstring update.
Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
* DOC: update CHANGES with blurb about WKT2 support
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
* Use compile_time_env in place of shims
* Update setup.py to require cython
* remove sdist_fill
* update MANIFEST
* Remove support for GDAL < 2.3
* Remove rasterfill.cpp
* Master is 1.3dev
* Lift transform translation out of loop.
Avoids unnecessary recomputations.
* minor code cleanup
* Update rasterio/__init__.py
Co-authored-by: Sean Gillies <sean@mapbox.com>
Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
* Add a Resampling.sum method
For weighted sum.
Added in GDAL 3.1 per https://github.com/OSGeo/gdal/pull/2366
I copied the approach used in #2056 to add and test this.
* resampling method sum not supported for read/write
* Resampling.sum fill in expected nonzero
* Plum the new rowcol precision default all the way up thru rio-merge
Follow up to #2106
* Address eps sign more generally
* Update change log
* Revert previous change, which broke with op=float
* Use the right dtype when checking nodataval
Use the dtype of the first dataset if dtype is None. If dtype is not
None, then dt == dtype.
* Use np.issubdtype to check dtypes.
* Add test for out of range nodata.
* Only query float dtype when nodataval is not NaN.
* Modify warning phrasing.
At this point the nodataval could either be set by the input files or by
the user. Use a more general phrasing to just convey the fact that the
nodata value is out of range of the dtype.
* Use inplace min/max to avoid array allocation.
In microbenchmark tests, the inplace seems to be slightly faster.
* Allocate a single array for a mask and use in-place operations
This is far more efficient that the multiple new arrays allocated by the
original function.
* Fix accidentally renamed function.
* Allow first operation to allocate and return new array
It looks cleaner to me and turns out to be just a little bit faster than
calling empty_like.
* Always use incoming input mask.
* Allocate mask array explicitly again.
* Factor out copy methods. Resolve method once.
* Format error message with list.
* Use much faster nan check
We can use a much faster scalar nan check.