nansat icon indicating copy to clipboard operation
nansat copied to clipboard

export2thredds failing

Open mortenwh opened this issue 5 years ago • 2 comments

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

mortenwh avatar Jul 11 '19 13:07 mortenwh

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?

mortenwh avatar Jul 11 '19 14:07 mortenwh

The failing tests are in the branch hotfix427_export2thredds

mortenwh avatar Jul 11 '19 15:07 mortenwh