Skip to content

Commit

Permalink
improve runtime behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Smretschnig authored and zebengberg committed Nov 22, 2024
1 parent 1ffdba6 commit 814f822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycontrails/datalib/ecmwf/era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def _preprocess_era5_dataset(self, ds: xr.Dataset) -> xr.Dataset:

# For "reanalysis-era5-single-levels"
# then the netcdf file does not contain the dimension "level"
if "single-levels" in self.dataset:
if self.is_single_level:
ds = ds.expand_dims(level=self.pressure_levels)

# New CDS-Beta gives "valid_time" instead of "time"
Expand Down

0 comments on commit 814f822

Please sign in to comment.