v0.3.2.0
Major Changes
Features
xesmf
is now an optional dependency, which should remove a lot of installation issues; this should close #47 .- Support for Windows: the
aux
module has been renamedauxfuncs
; together with making thexesmf
dependency optional, this should close #23 #22 #58 . - The
weightmap
class now has a new method that creates diagnostic figures, showing individual polygons and the grid that overlaps with them, shaded by overlapping area. Try it out and let me know what you think! (wm.diag_fig()
)
Bug fixes
xagg
is now more robust to grids with a challenging relationship with major longitudes / latitudes: notably, grids can now have grid cells that cross the antimeridian (following GeoJSON conventions of splitting those into MultiPolygons)xa.aux.get_bnds()
now works with grids that are misaligned with the antimeridian, that only partially cross the antimeridian, or that have half pixels at the polesxa.core.process_weights()
now will matchweights
grids tods
grids even if they arenp.allclose()
but not identical, and throws a warning if the resultantweights
variables is entirely 0s ornp.nan
sxa.aux.normalize()
will now returnnp.nan
arrays if the vector is entirely 0s (to avoid the divide by 0 warning)silent=True
should now actually prevent all normal standard output. Most warnings are unaffected. Closes #55 .
Short Changelog
- Bump actions/setup-python from 4 to 5 by @dependabot in #53
- Fixing wraparound issue by @ks905383 in #60
- Aims to address #58 and #23 by renaming
aux
toauxfuncs
by @ks905383 in #61 - Closes #55 by making silent=True silence all std out by @ks905383 in #63
- make tests more robust to dot product implementation by @ks905383 in #64
- Remove explicit dependency on
xesmf
by @ks905383 in #65 - Update test envs to support python 3.9-3.12, plus an env without xesmf by @ks905383 in #66
Full Changelog: v0.3.1.1...v0.3.2.0