Open kcariglia opened 5 years ago
@kcariglia - I thought we preserved NaN values - what format of data are you reading in? Is there any way you can share an example file with me?
I'm reading in hdf5 files, specifically TEC data which can be accessed via: http://cedar.openmadrigal.org/single/?isGlobal=on&categories=17&instruments=8000&years=2017&months=1&days=2
If you plot the TEC array, you will see that all NaN values are the same color as 0 values.
I'm working on creating 2D images with data in which 0 is a valid measurement, and all NaN values in the array are necessary to represent the absence of data. Is there a way to avoid resetting NaNs to 0? Is there a way to graphically represent this by using any colormap (like jet) for numerical data and reserving a separate color setting (like clear or white) for NaNs?