nansat
nansat copied to clipboard
export2thredds failing
When I reproject a dataset and export it with Exporter.export
, I can read the bands and everything seems fine. However, if I export the same reprojected dataset with Exporter.export2thredds
, there is no data - just NaN
values.
- [ ] Make test to reproduce the issue
It turns out the masked values are any values where the mask value is different from 64 - actually in accordance with the documentation...
Nansat uses 0 for invalid pixels and 1 for valid pixels in the swathmask band after reprojection. Where is 64 coming from? Can we change it to zero? Or can we specify the mask value as input?
The failing tests are in the branch hotfix427_export2thredds