psyplot / psy-view

An ncview-like GUI with psyplot
https://psyplot.github.io/psy-view
17 stars 2 forks source link

Value under cursor not consistent with data for ICON netCDF #26

Closed Casthardi closed 4 years ago

Casthardi commented 4 years ago

In the example figure the values under the cursor shows the value 1 but must be nan.

Voila_Capture 2020-05-05_02-27-48_PM

ocean_area.nc.zip

Chilipp commented 4 years ago

Hey @Casthardi,

alright, I looked into your file and where your mouse is, there is not data (see the plot below) image Currently I am just looking for the closest grid cell center, I should also look if the plot contains the element at the given position.

Casthardi commented 4 years ago

Yes, in case there is no element it should show nan. Since the undefined values in the model area are also drawn in white, it ist hard to distinguish between inner and outer model area. Maybe the outer area can be coloured in e.g. "light grey". A similar problem (and even worse) will occur, if one uses a color bar that contains the color white. In that case the nan within the model area, the domain outside the model area and the value that is associated with white color all look the same.