Prompt usage

This program requires a Python interpreter, which can be obtained here. Other Python compilers are also available online.

The SWEMED_download_prompt.py program allows the download raw and calibrated data (both in IAGA2002 format) from the command prompt without the need of an user interface. In this way it is possible to schedule the download of data without the need of human intervention. To run this program type:
   python SWEMED_download_prompt.py "mode" "data type"

Options available:
mode: T/Y/L/I/H/p
T - download today's data
Y - download yesterday's data
L - download last n files
I - dowload data within a time interval
H/help - small manual with description of the options available and a few examples
p/prompt - manual imput of parameters using a prompt
data_type: raw/cal
raw - raw data in IAGA 2002 file format (default)
cal - calibrated data in IAGA 2002 file format
nget: n   - download latest "n" files available.
Option only available if mode="L".
0 or "all" for all files; 1 or "" for last file
T_start - begining of time interval to download (in YYYYMMDD format).
T_end - end of time interval to download (in YYYYMMDD format).
Options only available if mode="I" (type "" for today's date).

Examples:
  Download today's raw file:   python SWEMED_download_prompt.py T raw
   or by default:   python SWEMED_download_prompt.py
  Download yesterday's calibrated file:   python SWEMED_download_prompt.py Y cal
  Download last raw file:   python SWEMED_download_prompt.py L raw 1
   or:   python SWEMED_download_prompt.py L raw
   or:   python SWEMED_download_prompt.py L
  Download last 3 raw files:   python SWEMED_download_prompt.py L raw 3
  Download last all calibrated files:   python SWEMED_download_prompt.py L cal 0
   or:   python SWEMED_download_prompt.py L cal all
  Download raw files between 1/1/2023 and 9/1/2023:
python SWEMED_download_prompt.py I raw 20230101 20230109


Note: In some computers it may be required to indicate the program's full path and that of the Python interpreter.