You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of expected behavior and the observed behavior
As described at discourse, when trying to visualize Shuttle Radar Topography Mission data (SRTM, https://dwtkns.com/srtm30m/), the units come as a python tuple:
data=xr.open_rasterio("some.hgt")
data.units
When trying to hvplot this, data.sel(band=1).hvplot.image(), this yielded an error:
.../python3.9/site-packages/param/parameterized.pyin_validate(self, val)
10231024ifnotisinstance(val, basestring):
->1025raiseValueError("String '%s' only takes a string value."%self.name)
10261027ifself.regexisnotNoneandre.match(self.regex, val) isNone:
ValueError: String'unit'onlytakesastringvalue.
ALL software version info
`mamba list`
Description of expected behavior and the observed behavior
As described at discourse, when trying to visualize Shuttle Radar Topography Mission data (SRTM, https://dwtkns.com/srtm30m/), the units come as a python tuple:
When trying to hvplot this,
data.sel(band=1).hvplot.image()
, this yielded an error:This issue had been created to add the ability to handle unit tuples.
The text was updated successfully, but these errors were encountered: