Skip to content

Commit 908c11b

Browse files
Merge branch 'dev' into main
2 parents 188a5ff + beeb77c commit 908c11b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dnora/bnd/read_ec.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,15 @@ def get_coordinates(self, start_time) -> Tuple:
9797

9898
return lon_all, lat_all
9999

100+
101+
102+
100103
def __call__(self, start_time, end_time, inds) -> Tuple:
101104
"""Reads in all boundary spectra between the given times and at for the given indeces"""
102105
msg.info(
103106
f"Getting ERA5 boundary spectra from {start_time} to {end_time}")
104107

108+
105109
temp_folder = 'dnora_bnd_temp'
106110
if not os.path.isdir(temp_folder):
107111
os.mkdir(temp_folder)
@@ -124,8 +128,8 @@ def __call__(self, start_time, end_time, inds) -> Tuple:
124128
nc_file = f'{temp_folder}/EC_ERA5.nc'
125129
else:
126130
nc_file = download_era5_from_cds(start_time, end_time,
127-
lon=(lon[0]-self.dlon, lon[1]+self.dlon),
128-
lat=(lat[0]-self.dlat, lat[1]+self.dlat),
131+
lon=(lon[0], lon[1]),
132+
lat=(lat[0], lat[1]),
129133
dlon=self.dlon,
130134
dlat=self.dlat,
131135
folder=temp_folder)

0 commit comments

Comments
 (0)