Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference in output of t96 and t01 model between IDL and Python geopacks! #9

Closed
qudsiramiz opened this issue Oct 18, 2021 · 4 comments

Comments

@qudsiramiz
Copy link

Hello,
I am testing and comparing the outputs of this geopack for two different models with those of IDL and I am getting very different results.

I have attached the figures which I plotted for this purpose. For each panel in the figure I have plotted the difference between the output from IDL and Python (b_out_idl - b_out_py). Difference from T96 are plotted in the first row whereas the difference between T01 model are plotted in the second row. The value of x_gsm is at the top left position whereas the value of DST used for the code is at top right

For both T96 and T01 model far from the earth, into the tail, the difference between two outputs is minimal, almost always less than 2nT, and thus can be ignored in most cases (Figure 1, for x_gsm = 9.98 R_E).

However, there seem to be significant difference in output when we move close to the Earth or when we are on the dayside. Though the difference is smaller for T01 outputs compared to those of T96, they are still significant, specially far from the Earth on the dayside (Figure 2).

I wonder if anyone else have had similar issues.

The parameters I used for the codes are as follows:

time = 2015-01-01 00:00:00 GMT
par = [5, 0, 1, 1, 0, 0, 0, 0, 0, 0]
x_gsm = np.linspace(-15.1, 15, 61)
y_gsm = np.linspace(-15.1, 15, 61)
z_gsm = np.linspace(-15.1, 15, 61)

I can provide the full python and IDL codes if that will help with the reproduction of these differences.

Figure 1
Figure_3

Figure 2
Figure_2

Figure 3
Figure_1

@tsssss
Copy link
Owner

tsssss commented Oct 18, 2021 via email

@qudsiramiz
Copy link
Author

Hey Sheng,
Yes I was able to reproduce the example which are in Readme file. They are exactly same.

I have uploaded the codes in my repository and have linked them here:

idl_code
python_code
idl_data_edit
plotting_code

I have tried to make the code consistent so that you can run them on your system with minimal edits. Also, please note that the codes are listed in the order they are run!

@tsssss
Copy link
Owner

tsssss commented Oct 19, 2021 via email

@tsssss tsssss closed this as completed Oct 21, 2021
@qudsiramiz
Copy link
Author

Hey Sheng,
Sorry for the delay in response. But yes it worked after I updated it with the latest version which is here on GitHub. Thank you so much for your help in debugging this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants