Skip to content

Commit c73a750

Browse files
committed
update weights block
1 parent 9a4ba00 commit c73a750

2 files changed

Lines changed: 135 additions & 83 deletions

File tree

aurora/config/templates/test_processing_config_with_weights_block.json

Lines changed: 98 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -156,93 +156,108 @@
156156
"normalized": true
157157
}
158158
},
159-
"weights": {
160-
"ex": {
161-
"combination_style": "multiplication",
162-
"features":[
163-
{
164-
"feature_name": "coherence",
165-
"feature_params": {
166-
"ch1": "ex",
167-
"ch2": "hy"
168-
},
169-
"window_style": "threshold",
170-
"window_params": {
171-
"min": 0.8,
172-
"max": "+inf"
173-
}
174-
},
175-
{
176-
"feature_name": "multiple_coherence",
177-
"feature_params": {
178-
"output_channel": "ex"
179-
},
180-
"window_style": "threshold",
181-
"window_params": {
182-
"min": 0.9,
183-
"max": 1.1
159+
"channel_weight_specs": [
160+
{
161+
"channel_weight_spec": {
162+
"output_channels": [
163+
"ex"
164+
],
165+
"combination_style": "multiplication",
166+
"features": [
167+
{
168+
"feature_name": "coherence",
169+
"feature_params": {
170+
"ch1": "ex",
171+
"ch2": "hy"
172+
},
173+
"window_style": "threshold",
174+
"window_params": {
175+
"min": 0.8,
176+
"max": "+inf"
177+
}
178+
},
179+
{
180+
"feature_name": "multiple_coherence",
181+
"feature_params": {
182+
"output_channel": "ex"
183+
},
184+
"window_style": "threshold",
185+
"window_params": {
186+
"min": 0.9,
187+
"max": 1.1
188+
}
189+
}
190+
]
184191
}
185-
}
186-
]
187192
},
188-
"ey": {
189-
"combination_style": "multiplication",
190-
"features":[
191-
{
192-
"feature_name": "coherence",
193-
"feature_params": {
194-
"ch1": "ey",
195-
"ch2": "hx"
196-
},
197-
"window_style": "threshold",
198-
"window_params": {
199-
"min": 0.8,
200-
"max": "+inf"
201-
}
202-
},
203-
{
204-
"feature_name": "multiple_coherence",
205-
"feature_params": {
206-
"output_channel": "ey"
207-
},
208-
"window_style": "threshold",
209-
"window_params": {
210-
"min": 0.9,
211-
"max": 1.1
193+
{
194+
"channel_weight_spec": {
195+
"output_channels": [
196+
"ey"
197+
],
198+
"combination_style": "multiplication",
199+
"features": [
200+
{
201+
"feature_name": "coherence",
202+
"feature_params": {
203+
"ch1": "ey",
204+
"ch2": "hx"
205+
},
206+
"window_style": "threshold",
207+
"window_params": {
208+
"min": 0.8,
209+
"max": "+inf"
210+
}
211+
},
212+
{
213+
"feature_name": "multiple_coherence",
214+
"feature_params": {
215+
"output_channel": "ey"
216+
},
217+
"window_style": "threshold",
218+
"window_params": {
219+
"min": 0.9,
220+
"max": 1.1
221+
}
222+
}
223+
]
212224
}
213-
}
214-
]
215225
},
216-
"hz": {
217-
"combination_style": "multiplication",
218-
"features":[
219-
{
220-
"feature_name": "coherence",
221-
"feature_params": {
222-
"ch1": "hx",
223-
"ch2": "rx"
224-
},
225-
"window_style": "threshold",
226-
"window_params": {
227-
"min": 0.8,
228-
"max": "+inf"
229-
}
230-
},
231-
{
232-
"feature_name": "coherence",
233-
"feature_params": {
234-
"ch1": "hy",
235-
"ch2": "ry"
236-
},
237-
"window_style": "threshold",
238-
"window_params": {
239-
"min": 0.7,
240-
"max": 0.999
241-
}
242-
}
243-
]
244-
}
245-
}
226+
{
227+
"channel_weight_spec": {
228+
"output_channels": [
229+
"hz"
230+
],
231+
"combination_style": "multiplication",
232+
"features": [
233+
{
234+
"feature_name": "coherence",
235+
"feature_params": {
236+
"ch1": "hx",
237+
"ch2": "rx"
238+
},
239+
"window_style": "threshold",
240+
"window_params": {
241+
"min": 0.8,
242+
"max": "+inf"
243+
}
244+
},
245+
{
246+
"feature_name": "coherence",
247+
"feature_params": {
248+
"ch1": "hy",
249+
"ch2": "ry"
250+
},
251+
"window_style": "threshold",
252+
"window_params": {
253+
"min": 0.7,
254+
"max": 0.999
255+
}
256+
}
257+
]
258+
}
259+
}
260+
]
246261
}
247262
},
248263
{
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
"""
2+
This is a sandbox folder. Probably most of what is here will wind up in mt_metadata, mtpy, or mth5.
3+
4+
While dealing with practical implementation of coherence sorting, it becomes clear
5+
that managing channel and feature nomenclature can become tricky.
6+
7+
We need a way to express the channel pairs that cohernce will be evaluated on.
8+
9+
The normal channel pairs are:
10+
ex-hy
11+
ey-hx
12+
ex-ref_ex
13+
ey-ref_ey
14+
hx-ref_hx
15+
hy-ref_hy
16+
17+
where "ref_" refers to the remote reference station.
18+
19+
For single station processing, only the first two are relevant.
20+
For remote reference, all six are relevant, with usage of ref_ex, ref_ey
21+
being __far__ less common that the magnetic channels at the remote station.
22+
23+
It seems useful to have the notion of a "remote reference context",
24+
where we can tell a processing configuration to use for example,
25+
26+
ey-hx
27+
hx-ref_hx
28+
29+
as our coherece sorting channels, without spelling out the reference
30+
channel name explictly. This is much like what happens inside
31+
transfer_function_helpers.process_transfer_functions, which uses the nomenclature X, Y, RR.
32+
33+
Within this "remote reference context", we can compute/access the appropriate coherences.
34+
35+
This can be revisited later in a multivariate context.
36+
37+
"""

0 commit comments

Comments
 (0)