Skip to content

Direct downloader of MARSIS EDR/RDR Data from PDS using only orbit number from user input (csv file or interactively)

License

Notifications You must be signed in to change notification settings

europlanet-gmap/MARSIS_EDR-RDR_PDS-Downloader

 
 

Repository files navigation

SCRIPT for search and download MARSIS EDR/RDR files from ODE using orbit number

@author: Giacomo Nodjoumi - g.nodjoumi@jacobs-university.de

DOI

README


Table of Contents


Pipeline/workflow description

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.

CONDA environment

To best use the script a conda environment configuration file is provided: MARSISv2_py38.yml

Install anaconda

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

Create the environment using the yml

Using the terminal, move to the folder where is located MARSISv2_py38.yml and run: conda env create -f MARSISv2_py38.yml

Activate MARSIS_py38 environment

Just run: conda activate MARSIS_py38

Script execution

To execute, simple run the following code python MARSIS_FTP_RETREIVER.py It will ask every arguments.

Arguments that can be passed

Orbits numbers csv

--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.

Data type

--dtype: edr, EDR, rdr, RDR

See below for details

Download directory

--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.


QGIS CSV CREATION

Manually orbit by orbit

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. alt text

Manually multiple orbits

Step 1 - select features of interests alt text

Step 2 - Right click on the geopackage layer and select export->save selected features as alt text

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

alt text

Examples

Conda environment installation and script execution

Thanks to @aprossi Report

General example

Just run `python MARSIS_EDR-RDR_PDS-DOWNLOADER.py

Test example

Here the example code shown in the image `python MARSIS_EDR-RDR_PDS-DOWNLOADER.py

alt text

About

Direct downloader of MARSIS EDR/RDR Data from PDS using only orbit number from user input (csv file or interactively)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%