issues
search
space-physics
/
igrf
International Geomagnetic Reference Field IGRF13 in Python and Matlab
https://www.ngdc.noaa.gov/IAGA/vmod/
MIT License
66
stars
28
forks
source link
Rewrite IGRF13 model from Fortran to Python
#16
Open
uho-33
opened
1 month ago
uho-33
commented
1 month ago
Rewrote the original
igrf.f
Fortran code in Python for improved readability and usability.
Utilized
numpy
to support array-based input and vectorized calculations for better performance.
Used a dictionary to store the
gh
data and saved the original data in JSON format for easy loading.
Implemented two functions:
IGRF13
: Takes separate input parameters for latitude, longitude, altitude, and date.
IGRF13_v
: Accepts input in a standardized array format for batch processing.
igrf.f
Fortran code in Python for improved readability and usability.numpy
to support array-based input and vectorized calculations for better performance.gh
data and saved the original data in JSON format for easy loading.IGRF13
: Takes separate input parameters for latitude, longitude, altitude, and date.IGRF13_v
: Accepts input in a standardized array format for batch processing.