spice_wget_files - ITA-Solar/solo-spice-ql GitHub Wiki
SPICE_WGET_FILES
This routine mirrors SPICE FITS files either from Oslo or Paris. Files are written to either a "level1" or "level2" subdirectory of the $SPICE_DATA directory. Below each directory, the files are organized by date, e.g. "level2/2021/10/20". Files no longer on the server are removed from the local copy.
If the environment variable SPICE_PWD is set, then the files are mirrored from Oslo. All SPICE FITS files are avaible from this server. The spice_catalog.txt and spice_catalog.csv files are also mirrored.
If the environment variable SPICE_PWD is not set, then the routine mirrors SPICE FITS files from the University Paris-Saclay, where the publicly available files reside. Note that not all SPICE FITS files are publicly available. The catalog.csv is also mirrored.
Syntax
spice_wget_files [, subpath] [, level=level]
Arguments
subpath
Subdirectory path to mirror. If not passed, the entire directory tree is mirrored. Possible formats are:
- Day : '2021/10/20'
- Month: '2021/10'
- Year : '2021'
Keywords
level
Data level, either 1, 2 or 3. Default=2.
Environment Variables
SPICE_DATA
Location of top of SPICE data tree. Below this are the "level*" directories.
SPICE_PWD
Password for the SPICE website.
Restrictions
The environment variable SPICE_DATA is required.
The environment variable SPICE_PWD is required to mirror the files
from Oslo and thus get access to the complete set of SPICE FITS files.