Skip to content

Enhance affine transformation#33

Merged
konstntokas merged 5 commits intomainfrom
konstntokas-xxx-clip_reproject
Mar 17, 2026
Merged

Enhance affine transformation#33
konstntokas merged 5 commits intomainfrom
konstntokas-xxx-clip_reproject

Conversation

@konstntokas
Copy link
Copy Markdown
Collaborator

@konstntokas konstntokas commented Mar 17, 2026

  • In xcube_resampling.reproject_dataset, the dataset is now clipped when the target
    grid-mapping covers less than 80% of the source grid-mapping, improving performance
    for reprojected cutouts.
  • In xcube_resampling.affine_transform_dataset, resampling is now performed per
    spatial slice, ensuring that interpolation is applied only along the spatial axes
    and no longer across non-spatial dimensions (e.g., time).
  • When prevent_nan_propagation=True, computation is now fully lazy. Previously, the
    implementation checked for NaN values in the source array, which triggered loading
    of the entire dataset into memory.

Checklist:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/
  • Changes documented in CHANGES.md
  • CI checks pass
  • Test coverage remains or increases (target 100%)

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.95%. Comparing base (530995f) to head (e014b7e).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
+ Coverage   98.65%   98.95%   +0.30%     
==========================================
  Files          20       20              
  Lines        2005     2018      +13     
==========================================
+ Hits         1978     1997      +19     
+ Misses         27       21       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@konstntokas konstntokas merged commit c4c9deb into main Mar 17, 2026
3 checks passed
@konstntokas konstntokas deleted the konstntokas-xxx-clip_reproject branch March 17, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant