Some of the bands within the source datasets had None as the no data value. Additional check within the code is required to ensure that nodata_mask is updated to a value 255 for a negative integer values only.
Also, the files referenced within qsub-cog app is relative meaning the same app does not work as expected when we run the qsub-cog command from a different directory. To solve this, make all the file references within the app as absolute.
Proposed solution
Update nodata_mask to a value 255 only when we have negative band value.
Make changes to glob the relative pattern for *.tif or *.TIF files and *.nc or *.NC files.
Reason for pull request
Some of the bands within the source datasets had
None
as the no data value. Additional check within the code is required to ensure thatnodata_mask
is updated to a value255
for a negative integer values only.Also, the files referenced within
qsub-cog
app isrelative
meaning the same app does not work as expected when we run theqsub-cog
command from a different directory. To solve this, make all the file references within the app asabsolute
.Proposed solution
nodata_mask
to a value255
only when we have negative band value.*.tif or *.TIF
files and*.nc or *.NC
files.absolute
.