Closed RadLad2019 closed 5 years ago
Hi there,
I've checked your code. There are several suggestions:
Python 3.7.3 (default, Mar 27 2019, 09:23:15)
[Clang 10.0.1 (clang-1001.0.46.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import geopack.geopack as gp
Load IGRF coefficients ...
ps = gp.recalc(100)
xgsm,ygsm,zgsm = gp.geogsm(2,1,100, 1)
xgsm,ygsm,zgsm
(-41.00700906453125, -19.962123759781406, 89.0221254665413)
Notice the differences between the above codes and your original codes. Remember to do recalc before any calculation. And remember to do geopack.geopack (this is a bit confusing due to the way the package is implemented).
Let me know if the problem persists.
Thanks, Sheng
On Wed, 22 May 2019 at 19:57, RadLad2019 notifications@github.com wrote:
Hi I'm having some problems using some of the functions in geopack, for example
import geopack as gp
xgsm, ygsm, zgsm = gp.geogsm(x,y,100,1) print(xgsm,ygsm,zgsm)
returns module 'geopack' has no attribute 'geogsm' as well as other functions such as IGRF_geo similarly saying that geopack doesn't have an attribute I used python3 -m pip install geopack to install it, is there anything else I need to install for geopack to work.
thanks in advance.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tsssss/geopack/issues/4?email_source=notifications&email_token=ADBMLBVY2EXSV4PFPPVJQCTPWXTYXA5CNFSM4HOZB4Y2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GVK2QVA, or mute the thread https://github.com/notifications/unsubscribe-auth/ADBMLBRULKABMRHEVNC3FXDPWXTYXANCNFSM4HOZB4YQ .
Thanks so much
Hi I'm having some problems using some of the functions in geopack, for example
import geopack as gp
xgsm, ygsm, zgsm = gp.geogsm(x,y,100,1) print(xgsm,ygsm,zgsm)
returns module 'geopack' has no attribute 'geogsm' as well as other functions such as igrf_geo similarly saying that geopack doesn't have an attribute I used python3 -m pip install geopack to install it, is there anything else I need to install for geopack to work.
thanks in advance.