Chaosmagpy

Latest version: v0.13

Safety actively analyzes 619291 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.13

Features
---------
* Updated RC-index file to RC_1997-2023_Dec23_v5.dat (used during the
construction of CHAOS-7.17).
* Extended `chaosmagpy.coordinate_utils.geo_to_gg` and
`chaosmagpy.coordinate_utils.gg_to_geo` to 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_txtfile` to load the IGRF
model from the coefficient TXT-file.

0.12

Features
---------
* Updated RC-index file to RC_1997-2023_Feb_v8_Dst_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()`` and ``gca()``.
* Added function `chaosmagpy.model_utils.sensitivity` to 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_shcfile` when 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.CHAOS` constructor. This only affected direct calls
to the constructor due to an outdated config keyword.

0.11

**Version of CHAOS:** CHAOS-7.12 (0712)

Features
---------
* Updated RC-index file to RC_1997-2022_Sept_v3.dat.
* Improved time conversion paragraph in the usage section.
* Added option to `chaosmagpy.coordinate_utils.sh_analysis` to 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_spectrum` to accept NumPy style
``axis`` keyword 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_e`` and ``rc_i`` to the model call method.

0.10

**Version of CHAOS:** CHAOS-7.11 (0711)

Features
---------
* Updated RC-index file to RC_1997-2022_June_v3.

0.9

**Version of CHAOS:** CHAOS-7.10 (0710)

Features
---------
* Updated RC-index file to RC_1997-2022_Feb_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_txtfile` to read the
CALS7K coefficients file.
* Function `chaosmagpy.model_utils.design_gauss` now 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_mjd` and
`chaosmagpy.data_utils.mjd_to_dyear` now correctly convert
negative decimal years and negative modified Julian dates (erroneous offset
of 1 day due to rounding to integer values).

0.8

**Version of CHAOS:** CHAOS-7.9 (0709)

Features
---------
* Updated RC-index file to RC_1997-2021_November_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`.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.