Skip to content

Commit

Permalink
minimal data var stuff when combining pred files
Browse files Browse the repository at this point in the history
  • Loading branch information
henryaddison committed Mar 15, 2024
1 parent 768d024 commit 8986619
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ml_downscaling_emulator/bin/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ def merge(

typer.echo(f"save to {output_filepath}")
os.makedirs(os.path.dirname(output_filepath), exist_ok=True)
xr.concat([xr.open_dataset(f) for f in pred_file_group], dim="time").to_netcdf(
output_filepath
)
xr.concat(
[xr.open_dataset(f) for f in pred_file_group],
dim="time",
join="exact",
data_vars="minimal",
).to_netcdf(output_filepath)

0 comments on commit 8986619

Please sign in to comment.