Giter Club home page Giter Club logo

Comments (4)

madokatext avatar madokatext commented on September 17, 2024

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.

jameswilburlewis avatar jameswilburlewis commented on September 17, 2024

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.

madokatext avatar madokatext commented on September 17, 2024

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.

jameswilburlewis avatar jameswilburlewis commented on September 17, 2024

@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.
t01_diffs

from geopack.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.