Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #460 +/- ##
==========================================
+ Coverage 96.98% 97.07% +0.09%
==========================================
Files 36 37 +1
Lines 3577 3693 +116
==========================================
+ Hits 3469 3585 +116
Misses 108 108 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #434.
Adds ECMWF's reduced Gaussian grids to the spherical and Wigner transforms (methods
"jax"and"torch"):sampling="octahedral": O_N for any N, with 4i + 16 points on ring i from the pole.sampling="reduced_gaussian": the classic N320 grid of ERA5, with the ring lengths of Atlas (Apache-2.0 notice kept).n_gaussgives N, the number of rings between a pole and the equator.The 2N rings lie at the Gauss–Legendre latitudes, and ring t holds the orders |m| ≤ m_max[t] of the ectrans cut-off. The transforms agree with ectrans 1.6.0 to a relative 1.6e-13 on O8–O160 and on N320 at L = 320, 426 and 640. They are exact when every ring keeps the orders up to L − 1 and 2N ≥ L. The six touched test files pass on CPU (3,817 tests).
Interface changes:
use_healpix_custom_primitivebecomesuse_cuda_custom_primitiveinforward_jaxandinverse_jax. With the flag, the reduced grids raiseNotImplementedErroruntil a CUDA ring FFT exists."numpy"and"jax_ssht"raiseValueErroron the reduced grids.TODO:
N200.ccand eckitreduced_classical_pl.cc, as for the octahedral grids (eckitreduced_octahedral_pl.cc).