I have two x-array datasets.
- One is called
foo
and has the dimensionsx,y,time
with variablesa,b,c,d
. - The second is called
bar
and is the result of a time series analysis onfoo
.- this only has dimensions
x,y
and a single variablee
where all values ofe
fall between0
and1
.
- this only has dimensions
I would like to use bar
to filter or limit the amount of x,y,time
data-entries being processed in foo
. Only x,y,time
's with e > 0.8
at each x.y
should be considered here-on.
I'm still fairly new to X-arrays. My question is whether a 'set operation' mentality of somehow AND-ing or intersecting two-xarray datasets and expecting a smaller dataset is a realistic way to reason about x-arrays?
Here is what I have so far.
foo = loadDataset()
bar = perform_timeseries_analysis()
filtered_bar = bar > 0.8
#TODO: Use bar to reduce the size of foo