solo-spice / sospice

Python data analysis tools for the SPICE extreme-UV spectrometer on Solar Orbiter
BSD 3-Clause "New" or "Revised" License
12 stars 5 forks source link

Download all files from a Catalog at once #49

Closed ebuchlin closed 5 months ago

ebuchlin commented 5 months ago

Downloading files from a Catalog currently involves downloading each file separately or adding each file to a Downloader before downloading them.

from parfive import Downloader
downloader = Downloader()
result.iloc[:10].apply(
   lambda row: FileMetadata(row).download_file(
      "/tmp/spice-files",  # base directory
      release="2.0",
      downloader=downloader
   ),
   axis=1
)
downloader.download()

This could be a method of the Catalog object.

ebuchlin commented 5 months ago

Duplicate of #48 (double submission of new issue)