SWxTREC / pymsis

Python interface to the NRLMSIS codes
MIT License
23 stars 5 forks source link

Ap values #55

Open AstroEloy opened 1 week ago

AstroEloy commented 1 week ago

Hi!

I see in many examples is used:

aps = [[ap] * 7]

si 7 for aps.

For exampl, in the potsdam table (https://www-app3.gfz-potsdam.de/kp_index/Kp_ap_Ap_SN_F107_since_1932.txt), there are these parameters: ap1 ap2 ap3 ap4 ap5 ap6 ap7 ap8 Ap

They are 8 plus 1 that I imagine that is an average.

What should be the appropiate variables from this datatable that I should use for aps?

Thanks! Eloy

greglucas commented 1 week ago

The values needed are described in the documentation: https://swxtrec.github.io/pymsis/reference/generated/pymsis.msis.run.html#pymsis.msis.run It is not a 1 to 1 mapping of values from that dataset to the necessary inputs, so you will have to transform them. This is already handled within the library for you so I'd suggest using the built-in function to do this mapping for you if you can: https://swxtrec.github.io/pymsis/reference/generated/pymsis.utils.get_f107_ap.html or just leaving the f107/ap values out of your call and letting the library automatically get the values for you.