Skip to content

Commit

Permalink
Release v2.36 (#95)
Browse files Browse the repository at this point in the history
FIXED:
 - Issues with ERA5 selection (time filtering did not work as intended)
 - Issues with Arome selection (location selection did not work as intended due to the floating point fix for ERA5)
  • Loading branch information
rflinnenbank authored Jan 31, 2023
1 parent ca0e929 commit 5830d4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def _filter_dataset_by_coordinates(
ds_single_coord.lat == coordinate.get_WGS84()[0], drop=True
)
ds_single_coord = ds_single_coord.where(
ds_single_coord.lon.round(2) == coordinate.get_WGS84()[1], drop=True
ds_single_coord.lon.round(3) == coordinate.get_WGS84()[1], drop=True
)
ds_single_coord = ds_single_coord.unstack("coord")
# Then append this to a clean list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,8 @@ def _fill_dataset_with_data(
"""
# Gather a dataset with the proper period and coordinates
ds = self.repository.gather_period(begin, end, era5sl_coordinates)
ds = ds.where(
np.datetime64(begin) < ds.time
).where(
ds.time < np.datetime64(end)
)

ds = ds.sel(time=slice(np.datetime64(begin), np.datetime64(end)))

# Drop excess weather factors
ds = ds.drop_vars(self._get_list_of_factors_to_drop(validated_factors))
Expand Down

0 comments on commit 5830d4a

Please sign in to comment.