Skip to content

Releases: xcube-dev/xcube-resampling

0.2.0

22 Oct 09:35

Choose a tag to compare

Changes in 0.2.0

  • Enhanced the function bbox_overlap so that it can handle bounding boxes crossing
    the antimeridian
  • Added new class method GridMapping.regular_from_bbox, which allows creating a
    regular grid mapping directly from a bounding box, spatial resolution, and CRS.
  • Added new function utils.resolution_meters_to_degrees which converts spatial
    resolution from meters to degrees in latitude and longitude at a given geographic
    latitude.
    • 1 degree of latitude ≈ 111,320 meters (constant approximation).
    • 1 degree of longitude ≈ 111,320 * cos(latitude) meters.
  • Bug fix: fixed grid mapping creation for irregular grids with decreasing longitude
    along axis 1.
  • Added xcube_resampling.resample_in_time which allows to resample a dataset along
    the time axis. It supports up- and down-sampling.
  • Renamed the parameter recover_nans to prevent_nan_propagations, which can be
    a boolean or a mapping (from variable name or dtype to boolean) that, when True,
    prevents NaN propagation during upsampling or interpolation.

0.1.1

22 Sep 11:23
d3c6b65

Choose a tag to compare

Changes in 0.1.1

  • Improved xcube_resampling.utils.clip_dataset_by_bbox to support datasets with
    2D coordinates. This function is also used internally by
    xcube_resampling.rectify.rectify_dataset.
  • Added reproject_bbox, a utility to reproject a bounding box from one CRS to another.
  • Added bbox_overlap, a utility that computes the fraction of the source bounding box
    overlapped by the target bounding box.

0.1.0

18 Aug 10:11

Choose a tag to compare

Changes in 0.1.0

  • Added algorithm for affine transformation. (#4)
  • Added algorithm for rectification of non-regular grids. (#4)
  • Added algorithm for reprojection to a different coordinate reference system (CRS).
    (#4)
  • Introduced main function resample_in_space, which dynamically selects the
    appropriate resampling algorithm based on the input dataset. (#4)
  • Added initial unit tests to verify core functionality. (#4)
  • Introduced a new unified keyword argument interp_method that supports values 0,
    1, "nearest", "triangular", and "bilinear". This argument applies
    consistently across all three resampling algorithms, simplifying usage and
    improving API consistency. (#8)
  • Documentation added, which is available at
    https://xcube-dev.github.io/xcube-resampling/. (#10)