Download and reformat magnetic carrington maps from fetch type WSO_FILLED_CR. More...
Download and reformat magnetic carrington maps from fetch type WSO_FILLED_CR.
Only files newer than a minimum date (default -Infinity) are downloaded.
From the downloaded file (Fetch level 0 with data format ASCII_WSO_V0), reformat it as V1 format (Fetch level 1 with data format ASCII_WSO_V1) and create a user-friendly symbolic link (Fetch level 2 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.
Important: After running this script, one must call update_database routine. Indeed, if this program fails before updating the database then the folder will have files not followed by the database.
Connect to the server and list all available files on the server (all_remote_files list) without taking into account date_begin and date_end.
Only > date_begin and < date_end are looked (remote_files_fm1 list).
Reformat file with data format ASCII_WSO_V0 into data format ASCII_WSO_V1.
Convert original_name.txt (Data format ASCII_WSO_V1) into friendly_name.txt (same data format) with a symbolic link.
Add or update the map2D database with recently created files (files from downloaded_files, f1_fetched_files, f2_fetched_files).