Skip to content

Commit

Permalink
Merge pull request #223 from umr-lops/fix_era5_reader
Browse files Browse the repository at this point in the history
Fix ERA5 raster reader time selection
  • Loading branch information
agrouaze authored Sep 18, 2024
2 parents e6e4f28 + a870fe7 commit 2548062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xsar/raster_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def era5_0250_1h(fname, **kwargs):

ds_era5 = xr.open_dataset(fname, chunks={'time': 1})
ds_era5 = ds_era5[['u10', 'v10', 'latitude025', 'longitude025']]
ds_era5 = ds_era5.sel(time=str(kwargs['date']))
ds_era5 = ds_era5.sel(time=str(kwargs['date']), method="nearest")
ds_era5 = ds_era5.drop('time')

ds_era5 = ds_era5.rename(
Expand Down

0 comments on commit 2548062

Please sign in to comment.