Open pochedls opened 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
27396e5
) to head (9331a02
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
I'm going to open a separate PR to address this enhancement with the temporal APIs because those require more work and we can merge this earlier when it is ready.
I started PR #683 for temporal operations. I used some of your code and split them up into reusable functions. We can think about making these functions generalizable across the spatial and temporal classes.
Check them out here: https://github.com/xCDAT/xcdat/pull/683/files
I've created general functions for weight thresholds here. You can copy them over to utils.py
in your branch and then use them in the SpatialAccessor
class as needed.
Rebased this branch on latest main
and pushed commit 34b570d
(#672) with code review updates (refer to commit message for list of changes).
Description
This PR adds an optional argument that requires a minimum fraction of data be available to perform a spatial average. The initial PR is for spatial averaging only (it would need to be expanded to handle temporal averaging).
Checklist
If applicable: