Skip to content
Snippets Groups Projects
Commit dc2102c1 authored by Woude, Auke van der's avatar Woude, Auke van der
Browse files

improve indexing for global ocean fluxes

parent d0e38c70
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,6 @@ class GlobalOcean(Ocean, Global):
year = self.dacycle['time.end'].year
if starttime.month == 2:
indices = [i for i in indices if times[i].day != 29]
if year %4 == 0:
data = ds['co2flux_ocean'][indices]
times = times[indices]
data = data.reshape((-1, monthrange(year, starttime.month)[1], *data.shape[1:])).mean(axis=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment