SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
fetch_ace_velocitylv4 Namespace Reference

Download and reformat ACE SWEPAM Level4 files from fetch type ACE_VELOCITYLV4. More...

Detailed Description

Download and reformat ACE SWEPAM Level4 files from fetch type ACE_VELOCITYLV4.

Only files from a minimum date (default today - 10 days) are downloaded.
From the downloaded file (Fetch level 0 with data format ASCII_ACEVELOCITYLV4_V0) create a user-friendly symbolic link (Fetch level 1 with the same data format).
Do it if not already present locally or if not the most recent.
Add in SW Database the new downloaded or formatted files.

Author
M. Indurain
Date
01 Jan 2019

1. Server connection

Connect to the server and list all available files on the server (all_remote_files list).

2. Filter files

Only > date_begin are looked (remote_vm1 list).

3. Fetch level 0: Download files

4. Fetch level 1: rename through a symbolic link

Convert original_name.txt (Data format ASCII_ACEVELOCITYLV4_V0) into friendly_name.txt (same data format) with a symbolic link.