... | ... | @@ -31,6 +31,11 @@ Then use the mask to replace values failing QC test with IEEE Not A Number to re |
|
|
If you prefer you can also use Numpy Masked Array to remove data from analysis.
|
|
|
|
|
|
direct_normal_broadband = np.ma.array(direct_normal_broadband, mask=mask)
|
|
|
print((direct_normal_broadband)
|
|
|
print(direct_normal_broadband)
|
|
|
[-- -- -- -- 11.0 20.0 50.0 110.0 -- 134.0]
|
|
|
|
|
|
direct_normal_broadband_mean = np.mean(direct_normal_broadband)
|
|
|
print(direct_normal_broadband_mean)
|
|
|
65.0
|
|
|
|
|
|
If a different set of tests were desired the only part that needs to change is 'tests', the rest of the code is independent of datastream or analysis. This will also work with multi-dimensional data. |
|
|
\ No newline at end of file |