Skip to content

Commit

Permalink
Changed get_remote_files_cmems so it is also compatible with use of t…
Browse files Browse the repository at this point in the history
…winID
  • Loading branch information
fcollas committed Nov 3, 2023
1 parent d8f4f9b commit 2354d58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wavy/insitu_collectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def get_remote_files_cmems(**kwargs):

# check if search str template
file_search_template = cfg.download['ftp']\
.get('search_str', '%Y%m%dT')
.get('search_str', '%Y%m%dT').replace('name',
name)

# credentials
server = insitu_dict[product]['download']['ftp']['server']
Expand Down Expand Up @@ -137,6 +138,7 @@ def get_remote_files_cmems(**kwargs):
matchingtmp = [s for s in content
if tmpdate_new.strftime(file_search_template)
in s]

tmplst = tmplst + matchingtmp
tmpdate_new = tmpdate_new + timedelta(minutes=twin)
matching = np.unique(tmplst)
Expand Down

0 comments on commit 2354d58

Please sign in to comment.