Skip to content
Snippets Groups Projects
Commit 687345f2 authored by Simon Grasse's avatar Simon Grasse
Browse files

remove: encoding when writing netcdf file

parent bf6b598b
No related branches found
No related tags found
1 merge request!11Creation of first beta release version
......@@ -17,17 +17,8 @@ def generate_compliance_report(dataset: xr.Dataset):
check_suite = CheckSuite()
check_suite.load_all_available_checkers()
encoding = {
"time": dataset.time.encoding,
"latitude": dataset.latitude.encoding,
"longitude": dataset.longitude.encoding,
"mean": dataset["mean"].encoding,
"std": dataset["std"].encoding,
"n": dataset["n"].encoding,
}
ds_output_path = Path(__file__).parent / "data_sample.nc"
dataset.to_netcdf(ds_output_path, encoding=encoding)
dataset.to_netcdf(ds_output_path)
return_value, errors = ComplianceChecker.run_checker(
str(ds_output_path),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment