Skip to content

Commit

Permalink
Put missing values to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
kvantricht committed Aug 21, 2024
1 parent dfd490f commit f1573cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion presto/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _extract_eo_data(cls, inarr: xr.DataArray) -> Tuple[np.ndarray, np.ndarray]:
)
idx_valid = values != cls._NODATAVALUE
values = cls._preprocess_band_values(values, presto_band)
eo_data[:, :, BANDS.index(presto_band)] = values
eo_data[:, :, BANDS.index(presto_band)] = values * idx_valid
mask[:, :, IDX_TO_BAND_GROUPS[presto_band]] += ~idx_valid
else:
logger.warning(f"Band {org_band} not found in input data.")
Expand Down

0 comments on commit f1573cb

Please sign in to comment.