beth182 / heat_scan

0 stars 0 forks source link

Transport and LCR funs can be generic and should be moved accordingly #17

Open beth182 opened 2 months ago

beth182 commented 2 months ago

ie plotting funs etc

beth182 commented 2 months ago

double occurrence of:

high_vals = xr.where(ds > threshold, 1, 0)  # set all temps over threshold = 1; others to 0
summed_vals = high_vals.sum(dim='time')
# replace any 0 values with nan
summed_vals = summed_vals.where(summed_vals > 0)