Comments (4)
The python T01 use different coefficients "c_sy" (in func "full_rc") and "a" (in func "t01") as the original FORTRAN77 T01. I think it's the main cause of the difference results between python and IDL T01. However, I don't know why they have different coefficients, since both of them have the comments βLATEST MODIFICATIONS/BUGS REMOVED: JUNE 24, 2006β.
Another weird point is that the IDL and the FORTRAN77 version still have slightly differnent results, but much smaller difference than that between python and FORTRAN77. The IDL geopack should be compiled from FORTRAN77 codes, so there shouldn't be differences in theory.
The situation is so complicated in T01 that I finally gave up dealing with the bugs of it.
from geopack.
Interesting! I wonder if Haje Korth has made a few changes in the Fortran T01 code in the process of developing the IDL version?
I'm going to try using ChatGPT-4 to translate the TA15 and TA16 Fortran models to Python. If that goes well, maybe I'll redo T01 the same way and see what happens.
from geopack.
I did another test, if I keep python coefficients "c_sy" (in func "full_rc"), "a" (in func "t01"), "a1,a2,rrc1,dd1,rrc2,dd2,p1,r1,dr1,dla1,p2,r2,dr2,dla2,p3,r3,dr3" (in func "ap") the same with FORTRAN77, then they got close results (less than 1% difference). That means the python T01 code may not have serious bugs, the main difference of the results only comes from coefficients differences.
from geopack.
@madokatext : After making the changes you suggested, I also see much improved results when comparing to IDL! The maximum error is now down to about 0.25 nT in the inner magnetosphere. I'll submit a PR, and hopefully we can get all the model corrections released to pypi soon.
from geopack.
Related Issues (18)
- Geopack.trace not providing vector of output values HOT 2
- Antiparallel tracing for geopack.trace source code error HOT 5
- Geopack says it has no attribute called geogsm, igrf_geo, etc. HOT 2
- Update to IGRF-13 HOT 2
- Consider adding project to list at https://heliopython.org/projects/ HOT 2
- inconsistent comparison results HOT 2
- some errors in t96.py HOT 2
- Difference in output of t96 and t01 model between IDL and Python geopacks! HOT 4
- Releasing new version to PyPI? HOT 1
- How to reference? HOT 1
- scipy and M1 arm64
- Feature Request: Evaluate models at multiple points HOT 1
- np.float is deprecated since numpy v1.24.0 HOT 1
- Getting latest bug fixes into PyPI? HOT 2
- geopack on conda-forge? HOT 1
- Bug report on t96.py HOT 6
- FAILED geopack/test_geopack1.py::KnownValues::test_to_known_values - AssertionError: -0.53356312486214 != -0.5335631237417825
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geopack.