Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation : add example use for global spectral transforms #51

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

MayeulDestouchesMF
Copy link

Description

This PR adds a use case in the gallery of examples, to show how the global spectral transforms can be used.

For GRIB files, this requires the use of the get_spectral_geometry() function, currently in src/epygram/cli/spectrum.py. This did not feel right, so I propose here to move this function to src/spectra.py, where all the other spectrum-related utility functions are stored.

Detail of modifications

  • Added new example docs/source/gallery/C-data/03.spectral_filtering_global.ipynb
  • Add a small input GRIB file, for use in the example.
  • Move get_spectral_geometry() function to spectra.py, and raise an error for GRIBs with geometries that are not handled.

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.

2 participants