geomagpy / magpy

MagPy (or GeomagPy) is a Python package for analysing and displaying geomagnetic data.
BSD 3-Clause "New" or "Revised" License
45 stars 27 forks source link

DIMeasurement analysis with an XYZ variometer doesn't result in XYZ baseline values #123

Open stephanbracke opened 1 year ago

stephanbracke commented 1 year ago

While analysing a measurement with an XYZ variometer it results in DHZ baseline values which should normally be XYZ baseline values. Tests were executed with attached files (autodif raw file and lemi/gems iaga file at Dourbes) test_files_di_analysis.zip

leonro commented 1 year ago

Spend some time to deeply review and check the DI analysis method, as well as baseline adoption. MagPy now completely supports DI Analysis with HEZ AND XYZ oriented variometer data. By default MagPy will always create a basevalues in HDZ. Provided that variometerdata is available in XYZ orientation it is now possible also to create basevalues in XYZ coordinates. For this purpose use the following options:

terminal: absresult = absoluteAnalysis(... , variometerorientation="XYZ", ...)

XMagPy: DIPanel -> AnalysisParameters -> blvoutput XYZ

Please note: previous versions of MagPy had a couple of issues particularly for baseline adoption. Basevalues were only correct (and correctly adopted) if variation data was provided as quasi-absolute HEZ (i.e. bias fields included). This issues are now solved. I also added a full description of the baseline method, its theoretical background and its application in MagPy to the general Readme.

Changes directly related to this issue are contained in this commit 9532747f9c21343a28ae8e7217f51543c888ec10

Would be great if you could verify the corrections. Cheers, Roman

mlnorthernswe commented 1 year ago

Sounds really good. Looking forward to test it!

stephanbracke commented 1 year ago

Ok I try to test it as well