Skip to content

Commit 86978f8

Browse files
preprocessor updates (#261)
* update sst concat in preproc * fix double nest preproc import * update docstrings
1 parent 4ff79c4 commit 86978f8

File tree

3 files changed

+204
-73
lines changed

3 files changed

+204
-73
lines changed

pyremo/preproc/cf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,10 @@ def get_sst(self, datetime, atmo_grid=None):
442442
).load()
443443
for t, f in files.items()
444444
]
445-
sst_da = xr.merge(sst_extract)[self.sst]
445+
# print("sst times found:", [da.time.values for da in sst_extract])
446+
sst_da = xr.concat(
447+
sst_extract, dim="time", data_vars="minimal", coords="minimal"
448+
)[self.sst]
446449
if len(sst_da.time) > 1:
447450
sst_da = sst_da.interp(
448451
time=datetime.strftime(cdo_datetime_format),

0 commit comments

Comments
 (0)