easysnowdata.processing.contract.apply_variables#
- easysnowdata.processing.contract.apply_variables(ds: Dataset, variables: Iterable[Any], *, mask: bool | None = None) Dataset[source]#
Apply the catalog
Variabledefinitions present in ds.Categorical variables get their CF flag attrs and keep the sentinel (
rio.nodataset); continuous variables are NaN-masked with the encoded nodata preserved.mask=Falseskips the NaN masking (the raw product);mask=Truealso NaN-masks categorical variables.