From a14b116d68864ada73a4201b373eb9499bfa9c52 Mon Sep 17 00:00:00 2001 From: RondeauG Date: Thu, 12 Oct 2023 09:12:10 -0400 Subject: [PATCH] finalised changes --- xhydro/modelling/_hydrotel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xhydro/modelling/_hydrotel.py b/xhydro/modelling/_hydrotel.py index c8244199..72ef3709 100644 --- a/xhydro/modelling/_hydrotel.py +++ b/xhydro/modelling/_hydrotel.py @@ -291,7 +291,6 @@ def _basic_checks(self, xr_open_kwargs: dict = None): raise_on=["all"], ) - # TODO: Do we want to support files other than debit_aval.nc? def _standardise_outputs( self, *, id_as_dim: bool = True, xr_open_kwargs: dict = None ): @@ -352,6 +351,11 @@ def _standardise_outputs( ds, self.project / "simulation" / "simulation" / "resultat" / "debit_aval.nc", rechunk=chunks, + netcdf_kwargs={ + "encoding": { + "streamflow": {"dtype": "float32", "zlib": True, "complevel": 1} + } + }, )