def fetch_sideshow_ionex(path,
date,
work_path=None,
templates=[JPLH_TEMPLATE, JPLH_ARCHIVE_TEMPLATE]):
"""
???
"""
with SmartTempDir(work_path) as work_path:
for template in templates:
server_fname = template.format(date=date)
local_fname = os.path.join(path, posixpath.basename(server_fname)[:-3])
try:
update_sideshow_file(local_fname,
server_fname)
return local_fname
except:
logger.info('could not download {}'.format(server_fname))
continue
raise RuntimeError('could not download IONEX file from sideshow for {:%Y-%m-%d}'.format(date))
评论列表
文章目录