... | ... | @@ -28,4 +28,9 @@ Then use the mask to replace values failing QC test with IEEE Not A Number to re |
|
|
print(direct_normal_broadband)
|
|
|
[ nan nan nan nan 11. 20. 50. 110. nan 134.]
|
|
|
|
|
|
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)
|
|
|
|
|
|
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 |