Skip to content

Commit

Permalink
add units to synthetic data
Browse files Browse the repository at this point in the history
  • Loading branch information
kkappler committed Dec 2, 2023
1 parent c807e4a commit 437580a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aurora/test_utils/synthetic/make_mth5_from_asc.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def create_run_ts_from_synthetic_run(run, df, channel_nomenclature="default"):
"time_period.start": run.start,
}
if col in [EX, EY]:
meta_dict["units"] = "millivolts per kilometer"
channel_metadata = {"electric": meta_dict}
chts = ChannelTS(
channel_type="electric", data=data, channel_metadata=channel_metadata
Expand All @@ -90,6 +91,7 @@ def create_run_ts_from_synthetic_run(run, df, channel_nomenclature="default"):
chts.channel_metadata.measurement_azimuth = 90.0

elif col in [HX, HY, HZ]:
meta_dict["units"] = "nanotesla"
channel_metadata = {"magnetic": meta_dict}
chts = ChannelTS(
channel_type="magnetic", data=data, channel_metadata=channel_metadata
Expand Down

0 comments on commit 437580a

Please sign in to comment.