Set masked pixels as np.nan in from_file_mask
Description
The masked pixels was set as 0
before, which would be confusing. Because in this case 0
has 2 meanings:
- Pixel is black,
- Pixel is masked.
So the masked pixel should be set as np.nan
, which means that, this pixel has no value.
Edited by Maximilian Schambach