simpeg / aurora

software for processing natural source electromagnetic data
MIT License
13 stars 2 forks source link

Synthetic test has x and y swapped #348

Open kujaku11 opened 1 month ago

kujaku11 commented 1 month ago

I'm not sure where this comes from, it looks like it might be in building the H5's but it looks like either Ex and Ey are swapped or Hx and Hy are swapped. When plotting the synthetic result with MTpy I get this:

Aurora Results

image

And the phases look like:

image

EMTF Results

image

Looks like EMTF results also has a phase flip. Could be mtpy-v2 or just a channel nomenclature issue.

kkappler commented 1 month ago

Yep, something does not look correct here.

Quick sanity check:

We expect (theoretically) for a homogeneous earth: phase_xy to be +45 degrees phase_yx to be -135 degrees

If that is correct, then we can fix the phase issue by

Not sure whether to fix this in the data, or in the reader.

kkappler commented 2 weeks ago

This has been fixed in the reader, with a non-robust fix.

A better fix would probably be to migrate the synthetic data to csv with headers, and make the reader assign the nomenclature after reading with the standard channel names, per mth5 issue 236