We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 834be9b commit 43ca2a1Copy full SHA for 43ca2a1
gencast_fp/postprocess/gencast_cf.py
@@ -185,7 +185,13 @@ def proc_time_step(
185
f"{tstamp}_res-1.0_levels-13{suffix}"
186
187
output_dir.mkdir(parents=True, exist_ok=True)
188
- ds.to_netcdf(output_dir / fname, encoding=encoding, engine="netcdf4")
+
189
+ # removing batch dimension during postprocessing
190
+ ds.isel(batch=0).to_netcdf(
191
+ output_dir / fname,
192
+ encoding=encoding,
193
+ engine="netcdf4"
194
+ )
195
return
196
197
0 commit comments