ChaosMagPy icon indicating copy to clipboard operation
ChaosMagPy copied to clipboard

add BIGMUDI model loader

Open fgerick opened this issue 11 months ago • 5 comments

Hi Clemens,

I added a function to load in the BIGMUDI models of Patrick Arneitz and colleagues (https://cobs.zamg.ac.at/gsa/index.php/en/models-and-databases/historical-geomagnetic-field).

When I evaluate the model and compare with the tool to evaluate the model from their website they seem to agree to the precision given by the website (1e-2 nT).

I believe the coefficients provided are not cubic B-Spline coefficients, despite the fact that the models are apparently created using degree 3 (Arneitz et al. 2019), but it is not clear from the website or the data.

Perhaps you would like to check the correctness of what I've implemented. There is some complicated-looking reordering of coefficients in the code, due to the way the coefficients are stored for the BIGMUDI models.

If necessary, I can also get in touch with Patrick Arneitz for help.

Cheers, Felix

fgerick avatar Jan 22 '25 12:01 fgerick

Hi Felix,

Thank you for your contribution to ChaosMagPy. I will take a look at your implementations and come up with some feedback as soon as I can.

All the best. Clemens

ancklo avatar Jan 22 '25 15:01 ancklo

I have also been comparing F from the ChaosMagPy model with the website's output (latitude 35 deg and longitude 141 deg). There seems to be a slight discrepancy of <0.2 muT, which I don't think can be attributed to rounding errors. This is especially the case between years -1000 and 0. The difference could be related to the use of cubic B-splines during the model estimation.

image

ancklo avatar Jan 23 '25 12:01 ancklo

I see, I guess I didn't check BIGMUDI4k.1. The error seems to be slightly smaller for BIGMUDIh.1. I'll try to figure out if these are cubic spline coefficients.

fgerick avatar Jan 23 '25 13:01 fgerick

I don't think the coefficients are for cubic splines. I guess the difference in the plot is because the model values provided on the website are produced by evaluating cubic B-splines. In contrast, we can only linearly interpolate the snapshot SH models. The difference is small so that we could stick to this solution. Otherwise, we would need the actual breakpoints used during the construction of the models.

ancklo avatar Jan 29 '25 14:01 ancklo

Yes I've been in touch with Patrick Arneitz and he told me these are evaluations of the model. He also sent me the actual spline coefficients. Perhaps I can make a version that is able to handle both the evaluations given on the website and the spline coefficients. I will come back to all of this when I have time.

fgerick avatar Jan 30 '25 07:01 fgerick