I have two x-array datasets.
- One is called
fooand has the dimensionsx,y,timewith variablesa,b,c,d. - The second is called
barand is the result of a time series analysis onfoo.- this only has dimensions
x,yand a single variableewhere all values ofefall between0and1.
- 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