Skip to content

feat: interpolate nearest spatial#260

Merged
b8raoult merged 28 commits intomainfrom
feature/interpolate_nearest_spatial
Mar 28, 2025
Merged

feat: interpolate nearest spatial#260
b8raoult merged 28 commits intomainfrom
feature/interpolate_nearest_spatial

Conversation

@OpheliaMiralles
Copy link
Copy Markdown
Contributor

@OpheliaMiralles OpheliaMiralles commented Mar 26, 2025

Description

  • Add spatial interpolation method to nearest neighbors for missing values
  • Comment out a check in xarray preventing single spatial coordinate (e.g. station, cell)
  • Adapt complement to other cases than cutout
  • Add possibility to leave nans in complement if the nearest points are too far / same for interpolate nearest

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Issue Number

Mostly personal usecases, but I do believe a spatial interpolation was needed (and fixes to complement result from investigation with station data which cannot be interpolated onto a full grid).

Code Compatibility

  • I have performed a self-review of my code

Code Performance and Testing

  • I have added tests that prove my fix is effective or that my feature works
  • I ran the complete Pytest test suite locally, and they pass

Dependencies

  • I have ensured that the code is still pip-installable after the changes and runs
  • I have tested that new dependencies themselves are pip-installable.

Documentation

  • My code follows the style guidelines of this project
  • I have updated the documentation and docstrings to reflect the changes
  • I have added comments to my code, particularly in hard-to-understand areas

📚 Documentation preview 📚: https://anemoi-datasets--260.org.readthedocs.build/en/260/

@OpheliaMiralles OpheliaMiralles self-assigned this Mar 26, 2025
@github-project-automation github-project-automation Bot moved this to Now In Progress in Anemoi-dev Mar 26, 2025
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Mar 26, 2025
@b8raoult b8raoult merged commit e6c9af4 into main Mar 28, 2025
7 of 17 checks passed
@b8raoult b8raoult deleted the feature/interpolate_nearest_spatial branch March 28, 2025 08:24
@github-project-automation github-project-automation Bot moved this from Now In Progress to Done in Anemoi-dev Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants