Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
added variables_with_nans in dataset metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Mar 5, 2024
1 parent 4f23b27 commit 9f8cd5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ecml_tools/create/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ def initialise(self, check_name=True):
variables = self.minimal_input.variables
self.print(f"Found {len(variables)} variables : {','.join(variables)}.")

variables_with_nans = self.minimal_input.variables_with_nans
if variables_with_nans:
print(f" Found nans for {' '.join(variables_with_nans)}")
variables_with_nans = self.config.get("has_nans", [])

ensembles = self.minimal_input.ensembles
self.print(f"Found {len(ensembles)} ensembles : {','.join([str(_) for _ in ensembles])}.")
Expand Down Expand Up @@ -236,6 +234,7 @@ def initialise(self, check_name=True):

metadata["ensemble_dimension"] = len(ensembles)
metadata["variables"] = variables
metadata["variables_with_nans"] = variables_with_nans
metadata["resolution"] = resolution

metadata["licence"] = self.main_config["licence"]
Expand Down

0 comments on commit 9f8cd5d

Please sign in to comment.