Internal function to determine the NA value to be used for each product type (except for spectral indices, whose NA value is managed by s2_calcindices).

s2_defNA(prod_types)

Arguments

prod_types

Character vector of the input product types

Value

Numeric NA values (NA not to seet any NA value), corresponding to prod_types.

Examples

sen2r:::s2_defNA("BOA")
#> BOA #> 65535
sen2r:::s2_defNA(c("BOA","BOA","SCL","TCI"))
#> BOA BOA SCL TCI #> 65535 65535 0 0