Version 4.14 - #527
Merged
Merged
Version 4.14#527
Conversation
in docs : fix inconsistencies in for csphase values
Change astropy packages to astropy-base
Minor minor errors...
…isting high-res models instead of downloading lower-res models.
- Context:
- Some datasets have multiple resolutions, e.g. `pyshtools.datasets.Mars.MOLA_shape` has degrees 5759, 2879, 1439, and 719.
- Current behavior:
- When a user loads a dataset, pyshtools chooses the smallest model which satisfies the user's input lmax -- for example, calling `MOLA_shape(2000)` will download the 2879 model. However, if you then call `MOLA_shape(1000)`, pyshtools will download the 1439 model. We would save space/time to reuse the previously downloaded 2879 model.
- Improvement:
- This commit makes it so in aforementioned scenario, pyshtools will load the existing 2879 model.
- In terms of code, all datasets with multiple resolutions now call the method `_choose_sh_model(...)` (located in `/pyshtools/datasets/_utils.py`). This takes the user's desired lmax and a pooch object containing available models, and either loads any existing model with sufficient resolution, or downloads the smallest model with enough resolution.
Add Boule support
…ding refactor: minor change to Mars dataset downloading logic.
Version 4.14
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.
Version 4.14
Support for Boule ellipsoids
This version provides support for using Boule ellipsoids in many routines that compute the shape and gravity field of a planet.
Create a grid of a predefined ellipsoid:
Create an area-weighted histogram of spherical elevations with respect to an ellipsoid:
Plot spherical heights with respect to an ellipsoid:
Create grids of the spherical gravity vector components, gravity disturbance, and gravity potential on a rotating ellipsoid:
Create grids of the gravity gradient tensor on a flattened ellipsoid:
Create a grid of the geoid height with respect to an ellipsoid:
Create grids of the magnetic field tensor on a flattened ellipsoid:
Datasets
Other changes
title,cb_label, andcb_ylabelstrings inplotgmt()to work with pygmt 0.12.l2norm.lmaxwas not treated properly forSHCoeffs.expand()when using GLQ grids with the shtools backend.lmaxandlmax_calcare set when making grids from coefficients that could improve performance under certain circumstances.YilmIndexVector.Packaging
astropy-baseinstead of the fullastropypackage.-m64compiler flag that gives rise to incompatibilites with aarch64 platforms, and which probably is no longer necessary.codemeta.json.Reference
M. A. Wieczorek, M. Meschede, A. Broquet, T. Brugere, A. Corbin, EricAtORS, K. Hansen, A. Hattori, A. Kalinin, Z. E. Kamal, J. Kohler, D. Kutra, K. Leinweber, P. Lobo, J. Maia, E. Mentzer, D. Minton, I. Oshchepkov, P.-L. Phan, O. Poplawski, M. Reinecke, E. Sales de Andrade, E. Schnetter, S. Schröder, D. Shin, J. Sierra, A. Vasishta, A. Walker, xoviat, B. Xu (2024). SHTOOLS: Version 4.14, Zenodo, doi:10.5281/zenodo.592762.