Skip to content

Set masked pixels as np.nan in from_file_mask

Maximilian Schambach requested to merge feature/add_nan_in_from_file_mask into master

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

Merge request reports