Recent Releases of chaosmagpy
chaosmagpy - ChaosMagPy v0.15
Version 0.15
Date: July 4, 2025 Release: v0.15
News
Starting with CHAOS-8.3, the model of the ionospheric E-layer field
can be evaluated directly in ChaosMagPy
(see chaosmagpy.chaos.CHAOS.synth_values_ion) by simply loading the
MAT-file. However, this requires the installation of the optional package Apexpy.
Features
- Updated built-in RC-index file to RC1997-2025June25v6allLT.dat (used during the construction of CHAOS-8.3).
- Added method to evaluate the ionospheric E-layer field
chaosmagpy.chaos.CHAOS.synth_values_ion.
Full Changelog: https://github.com/ancklo/ChaosMagPy/compare/v0.14...v0.15
- Python
Published by ancklo 8 months ago
chaosmagpy - ChaosMagPy v0.14
Version 0.14
Date: June 21, 2024 Release: v0.14
News
At the moment, only Numpy <= 1.26 is supported due to a deprecation affecting a ChaosMagPy dependency. This will hopefully be fixed soon.
Features
- Updated RC-index file to RC1997-2024June24_v5.dat (used during the construction of CHAOS-7.18).
- Increased precision of
chaosmagpy.data_utils.timestampandchaosmagpy.data_utils.mjd2000to nanosecond. - Added function to compute the unit base vector in the direction of the
geomagetic north pole:
chaosmagpy.coordinate_utils.dipole_to_vec.
- Python
Published by ancklo over 1 year ago
chaosmagpy - ChaosMagPy v0.13.1
Version 0.13.1
Date: June 4, 2024 Release: v0.13.1
Features
- Made Matplotlib an optional dependency of ChaosMagPy.
- Added optional dependencies to
pyproject.toml.
Bugfixes
- Removed deprecated matplotlib call to register a colormap. The previous version caused an ImportError with matplotlib >=3.9.
- Python
Published by ancklo over 1 year ago
chaosmagpy - ChaosMagPy v0.13
Version 0.13
Date: January 31, 2023 Release: v0.13
Features
- Updated RC-index file to RC1997-2023Dec23_v5.dat (used during the construction of CHAOS-7.17).
- Extended
chaosmagpy.coordinate_utils.geo_to_ggandchaosmagpy.coordinate_utils.gg_to_geoto also allow for the rotation of vector components. - Removed Cartopy from the dependencies (basic map projections are done with Matplotlib and coastlines are loaded from Natural Earth). New dependency for reading the coastline shapefile is PyShp (>=2.3.1).
- Added function
chaosmagpy.chaos.load_IGRF_txtfileto load the IGRF model from the coefficient TXT-file.
- Python
Published by ancklo about 2 years ago
chaosmagpy - ChaosMagPy v0.12
Version 0.12
Date: April 27, 2023 Release: v0.12
Features
- Updated RC-index file to RC1997-2023Febv8Dst_mod.dat (used during the construction of CHAOS-7.14).
- Plotting function do not return figure and axes handles any more. If needed,
they can be accessed through matplotlib's
gcf()andgca(). - Added function
chaosmagpy.model_utils.sensitivityto compute the sensitivity of spherical harmonic coefficients. - Changed the default colormap for the component maps to
'PuOr_r'(orange for positive values and purple for negative ones).
Bugfixes
- Fixed error in
chaosmagpy.data_utils.load_shcfilewhen reading single piece, quadratic splines. Error was due to a failure to identify the shc-parameter line as the first non-comment line in the file. - Fixed KeyError that is raised when no name is given to the
chaosmagpy.chaos.CHAOSconstructor. This only affected direct calls to the constructor due to an outdated config keyword.
- Python
Published by ancklo almost 3 years ago
chaosmagpy - ChaosMagPy v0.11
Version 0.11
Date: September 29, 2022 Release: v0.11 Version of CHAOS: CHAOS-7.12 (0712)
Features
- Updated RC-index file to RC1997-2022Sept_v3.dat.
- Improved time conversion paragraph in the usage section.
- Added option to
chaosmagpy.coordinate_utils.sh_analysisto increase the grid size for the numerical integration. - Made time conversion functions (
chaosmagpy.data_utils.mjd2000,chaosmagpy.data_utils.timestamp,chaosmagpy.data_utils.dyear_to_mjd,chaosmagpy.data_utils.mjd_to_dyear) directly available upon import. - Extended
chaosmagpy.model_utils.power_spectrumto accept NumPy styleaxiskeyword argument, and added new tests for this function. - Added more detailed error message when requesting near-magnetospheric coefficients outside the domain covered by the RC-index file.
- Added input parameters
rc_eandrc_ito the model call method.
- Python
Published by ancklo over 3 years ago
chaosmagpy - ChaosMagPy v0.10
Version 0.10
Date: July 1, 2022 Release: v0.10 Version of CHAOS: CHAOS-7.11 (0711)
Features
- Updated RC-index file to RC1997-2022June_v3.
- Python
Published by ancklo over 3 years ago
chaosmagpy - ChaosMagPy v0.9
Version 0.9
Date: April 1, 2022 Release: v0.9 Version of CHAOS: CHAOS-7.10 (0710)
Features
- Updated RC-index file to RC1997-2022Feb_v3.
- Changed the default leap year setting when loading/saving shc-files using
the model classes to
leap_year=False. - Added function
chaosmagpy.chaos.load_CALS7K_txtfileto read the CALS7K coefficients file. - Function
chaosmagpy.model_utils.design_gaussnow accepts multidimensional shapes of input grids and preserves them in the output. - Added new method
chaosmagpy.chaos.Base.to_ppdict, which returns a dictionary of the pp-form compatible with MATLAB. - Added support for calibration parameters.
- Renamed "params.version" in basicConfig to "params.CHAOS_version".
Bugfixes
- Functions
chaosmagpy.data_utils.dyear_to_mjdandchaosmagpy.data_utils.mjd_to_dyearnow correctly convert negative decimal years and negative modified Julian dates (erroneous offset of 1 day due to rounding to integer values).
- Python
Published by ancklo almost 4 years ago
chaosmagpy - ChaosMagPy v0.8
Version 0.8
Date: December 9, 2021 Release: v0.8 Version of CHAOS: CHAOS-7.9 (0709)
Features
- Updated RC-index file to RC1997-2021November_v3.
- Added ability to compute field components at the geographic poles.
- Removed cdot from SV, SA units in
chasomagpy.data_utils.gauss_units. - Added
chaosmagpy.coordinate_utils.sh_analysis, which performs a spherical harmonic expansion on a callable.
Bugfixes
- Removed Euler pre-rotation, which was not correctly implemented, and added a warning.
- Fixed shc-file loader to correctly exclude extrapolation sites.
- Fixed numpy broadcasting error in
chasomagpy.data_utils.mjd2000.
- Python
Published by ancklo about 4 years ago
chaosmagpy - ChaosMagPy v0.7
Version 0.7
Date: August 05, 2021 Release: v0.7 Version of CHAOS: CHAOS-7.8 (0708)
Features
- Added matplotlib's plot_directive for sphinx and added more examples to a new gallery section in the documentation.
- Added
chaosmagpy.model_utils.pp_from_bsplineto convert the spline coefficients from B-spline to PP format. - Changed the way piecewise polynomials are produced from the coefficients in shc-files. A B-spline representation is now created in an intermediate step to ensure coefficient time series that are smooth.
- Changed the number format to
'16.8f'when writing shc-files to increase precision. - Configuration parameters in
chaosmagpy.basicConfigare now saved to and loaded from a json-formatted txt-file. - Added keyword arguments to
chaosmagpy.chaos.CHAOS.synth_coeffs_smandchaosmagpy.chaos.CHAOS.synth_values_smto provide the RC-index values directly instead of using the built-in RC-index file.
- Python
Published by ancklo over 4 years ago
chaosmagpy - ChaosMagPy v0.6
Version 0.6
Date: March 22, 2021 Release: v0.6 Version of CHAOS: CHAOS-7.6 (0706)
Features
- Added new usage sections to the documentation
Bugfixes
- Fixed broken link to RC-index file (GitHub issue #5).
- Added lxml to installation instructions (needed for webpage requests, optional).
- Require hdf5storage version 0.1.17 (fixed read/write intent)
- Python
Published by ancklo almost 5 years ago
chaosmagpy - ChaosMagPy v0.5
Version 0.5
Date: December 23, 2020 Release: v0.5 Version of CHAOS: CHAOS-7.5 (0705)
Features
- Modified "nio" colormap to be white-centered.
- Added spatial power spectrum of toroidal sources (chaosmagpy.modelutils.powerspectrum)
- Python
Published by ancklo about 5 years ago
chaosmagpy - ChaosMagPy v0.4
New release of ChaosMagPy v0.4 for the latest update of the CHAOS model series, CHAOS-7.3
Changelog
Version 0.4
Date: September 10, 2020 Release: v0.4 Version of CHAOS: CHAOS-7.3 (0703)
Features
- Updated RC-index file to RC1997-2020Aug_v4.dat.
- Model name defaults to the filename it was loaded from.
- Added function to read the COV-OBS.x2 model (chaosmagpy.chaos.loadCovObstxtfile) from a text file.
- Added function to read the gufm1 model (chaosmagpy.chaos.loadgufm1txtfile) from a text file.
- Added class method to initialize chaosmagpy.chaos.BaseModel from a B-spline representation.
- Python
Published by ancklo over 5 years ago
chaosmagpy - ChaosMagPy v0.3
This is a new version of ChaosMagPy which can be used together with the latest CHAOS model release (CHAOS-7.2).
Below is a copy of the changelog.
Version 0.3
Date: April 20, 2020 Release: v0.3 Version of CHAOS: CHAOS-7.2 (0702)
News
The version identifier of the CHAOS model using x, which stands for an
extension of the model, has been replaced in favor of a simple version
numbering. For example, CHAOS-6.x9 is the 9th extension of the CHAOS-6
series. But starting with the release of the CHAOS-7 series, the format
CHAOS-7.1 has been adopted to indicate the first release of the series,
CHAOS-7.2 the second release (formerly the first extension) and so on.
Features
- Updated RC-index file to RC1997-2020Feb_v4.dat.
- Removed version keyword of
chaosmagpy.chaos.CHAOSto avoid confusion. - Added
verbosekeyword to thecallmethod ofchaosmagpy.chaos.CHAOSclass to avoid printing messages. - Added
chaosmagpy.data_utils.timestampfunction to convert modified Julian date to NumPy's datetime format. - Added more examples to the
chaosmagpy.chaos.CHAOSmethods. - Added optional
nminandmmaxtochaosmagpy.model_utils.design_gaussandchaosmagpy.model_utils.synth_values(nmin has been redefined). - Added optional derivative to :func:
chaosmagpy.model_utils.colloc_matrixof the B-Spline collocation. New implementation does not have the missing endpoint problem. - Added
satellitekeyword to change default satellite names when loading CHAOS mat-file.
- Python
Published by ancklo almost 6 years ago
chaosmagpy - ChaosMagPy v0.2.1
This is an update of the previous version ChaosMagPy v0.2 which fixes a problem in the function "zenith_angle" for computing the zenith angle of the sun. This bug did not have any effect on the CHAOS class used for the CHAOS model forward calculation.
- Python
Published by ancklo about 6 years ago
chaosmagpy - ChaosMagPy v0.2
New version using the latest CHAOS-7 geomagnetic field model.
- Python
Published by ancklo over 6 years ago