Giter VIP home page Giter VIP logo

Comments (5)

tsssss avatar tsssss commented on August 16, 2024

from geopack.

tsssss avatar tsssss commented on August 16, 2024

from geopack.

Rhyst223 avatar Rhyst223 commented on August 16, 2024

Hi Sheng,

I am running my code as follows:

from geopack import geopack
import numpy as np
import pandas as pd

glats = [45.871,48.027,50.199,52.035,53.856,54.929,56.376,57.707,58.763,62.824]
glons = [264.917,263.635,263.960,264.537,265.340,264.713,265.300,265.794,265.920,267.890]

data = pd.Series([2.008e+03,  1.000e+00,  2.100e+01,  3.500e+01, -2.140e+00,
        1.560e+00,  2.200e-01, -3.514e+02, -2.200e+00, -7.900e+00,
        7.750e+00,  3.131e+04, -4.000e+00,  1.000e+00,  1.000e+00,
       -3.380e-01,  1.850e+00,  0.000e+00,  0.000e+00,  0.000e+00,
        0.000e+00,  0.000e+00,  0.000e+00])

data.columns = ['IYEAR', 'IDAY', 'IHOUR', 'MIN', 'BXGSM', 'BYGSM', 'BZGSM', 'VXGSE',
       'VYGSE', 'VZGSE', 'DEN', 'TEMP', 'SYMH', 'IMFFLAG', 'ISWFLAG', 'TILT',
       'Pdyn', 'W1', 'W2', 'W3', 'W4', 'W5', 'W6']

ut = data['IHOUR']*3600 + data['MIN']*60  
ps = geopack.recalc(ut)

Re = 6371.2
x, y,= geopack.geodgeo(100,np.deg2rad(glats[0]),1)
xgsm, ygsm, zgsm = geopack.geogsm(x,y,100,1)
xgsm /= Re
ygsm /= Re
zgsm /= Re

parmod = [data['Pdyn'][0],data['SYMH'][0],data['BYGSM'][0],data['BZGSM'][0]]
geopack.trace(xgsm,ygsm,zgsm,1,parmod=parmod,rlim=100,exname='t96')

Thanks,

Rhys

from geopack.

tsssss avatar tsssss commented on August 16, 2024

from geopack.

tsssss avatar tsssss commented on August 16, 2024

from geopack.

Related Issues (16)

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.