Skip to content

0.3.2.2

Compare
Choose a tag to compare
@ks905383 ks905383 released this 08 Aug 22:07
· 9 commits to main since this release

Updates

  • Regridding weights to the input dataset grid now uses the "conservative" regridding algorithm from xesmf instead of the "bilinear" one; the bilinear one is inappropriate for many weights (population, etc.), since it throws away many low-valued source boxes.
  • Weights now have nans set to 0 before regridding, to make sure nan pixels are included in weights. Since nans usually imply 0s in weights (for example, population weights for which water surfaces are set to nan), this prevents entire coarser pixels from being set to 0 if they overlap with a nan
  • Both of the above can be changed with xa.set_options(rgrd_alg='bilinear',nan_to_zero_regridding=False), respectively.

Bug fixes

  • wm.diag_fig() now accepts DataArrays, as stated in docs.

What's Changed

Full Changelog: v0.3.2.1...v0.3.2.2