m9brady / SMP_to_CSV

Converts SnowMicroPen pnt files into csv/png products, with methods for estimating snow microstructure properties.
Other
5 stars 3 forks source link

self.mask #10

Open kingjml opened 7 years ago

kingjml commented 7 years ago

Instead of using a subset could we just use a bool mask?

Could initiate it as self.mask = filteredArr[:,1] < 0 or have a bit flag at each array index,

This would be useful for masking outliers, ice features and other issues as well.

m9brady commented 7 years ago

Instead of having two attributes (self.data and self.subset), there is also the option of using a masked array for self.data.

Exporting of the raw data is still achievable, and matplotlib seems to be okay with NaN fill-values in masked arrays...

kingjml commented 7 years ago

Functionality is described as "nearly identical to np". Should that worry us?

Why don't we code up to two examples. One that uses masked arrays and another that uses a simple boolen array for masking purposes.