Download and reformat magnetic carrington maps from fetch type NSOZ_DATE. More...
Download and reformat magnetic carrington maps from fetch type NSOZ_DATE.
Only files newer than a minimum date (default today - 15 days) AND file corresponding to 12 AM/PM or 1 AM/PM are downloaded.
Download remote files if not already present locally.
From the downloaded file (Fetch level 0), gunzip the file (Fetch level 1 with data format FITS_NSO_V0) 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.
Only 0h,6h,12h,18h and > date_begin are looked (remote_files_fm1 list).
Gunzip .fts.gz into .fts (FITS_NSO_V0).
Convert original_name.fts (Data format FITS_NSO_V0) into friendly_name.fts (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).