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

EUI/FSI background map file should be cached #40

Closed ebuchlin closed 5 months ago

ebuchlin commented 7 months ago

FovBackground.plot_EUI_FSI() uses Fido.fetch() to download the EUI file to a temporary directory. This means that it is re-downloaded each time the function is called.

There should be a way to get a URL for this file from Fido. Then Map() could be called with this URL as parameter, and the downloaded file would be automatically be put in the SunPy cache: the file would be downloaded only once.

ebuchlin commented 5 months ago

Recommended by @cadair: put file in user data directory using platformdir.

ebuchlin commented 5 months ago

Closed by #47