@author: Giacomo Nodjoumi - g.nodjoumi@jacobs-university.de
The script in brief:
- Read EDR/RDR geopackage containing all orbits
- Search user_requested orbits
- Report missing orbits
- Compute size of the download and ask for confirmation
- Download requested orbits and ask if user want to download more
** See example at the end of this readme**
The script can work both passing some/all arguments or none If NO argument is passed, defaults are used and interactively requested the others.
To best use the script a conda environment configuration file is provided: MARSISv2_py38.yml
Installer of anaconda for different operating systems are provided on the official page. Anaconda Installers
To install conda on linux, download this file, with terminal move to the downloaded folder and run:
sudo chmod +x Anaconda3-VERSION-Linux-x86_64.sh
(replace VERSION with the proper filename)sudo ./Anaconda3-VERSION-Linux-x86_64.sh
Using the terminal, move to the folder where is located MARSISv2_py38.yml and run:
conda env create -f MARSISv2_py38.yml
Just run:
conda activate MARSIS_py38
To execute, simple run the following code python MARSIS_FTP_RETREIVER.py
It will ask every arguments.
--orbits: csv file containing all orbit to download.
This csv can be manually created or generated by QGIS
- MANUAL CSV Is as a one-column csv with "Orbit" (without quotes) as first row and orbit numbers as new rows. e.g.
Orbit |
---|
02445 |
01865 |
10231 |
..... |
- QGIS CSV Simply is a csv created by saving selected features directly in QGIS.
--dtype: edr, EDR, rdr, RDR
See below for details
--ddir : is the folder where the files will be downloaded default is a folder called "downloads+datetime". Automatically created in the directory where is executed the script
If NO argument is passed, defaults are used and interactively requested the others.
Orbit numbers can be retreived from QGIS You can interrogate every orbit by using the info tool Step 1m - Left click on each track of interest, a side panel will open with all relative informations, take notes of the orbit number and create a CSV file as described above.
Step 1 - select features of interests
Step 2 - Right click on the geopackage layer and select export->save selected features as
Step 3 - In the opened windows select:
- Format: Comma Separated Value[CSV]
- File name: selecte path and savename of choice
- Then expand "Select fields to export and their export options" and flag all or ONLY Orbit
- Click on ok
Thanks to @aprossi Report
Just run `python MARSIS_EDR-RDR_PDS-DOWNLOADER.py
Here the example code shown in the image `python MARSIS_EDR-RDR_PDS-DOWNLOADER.py