Skip to content

Process 4

Kevin Ballantyne edited this page Oct 22, 2024 · 8 revisions

Downloads Order Items with Status AVAILABLE_FOR_DOWNLOAD

Step 1 - Start Script

Start the script by running python eodms_cli.py in a command-prompt or terminal (or python3 eodms_cli.py if you have multiple installs of Python).

NOTE: If you would like to use a shapefile, install the GDAL Python package before running the script.

Step 2 - Enter Username & Password

Enter your username and password when prompted.

You will be asked if you wish to store the username and password for a future session. If you choose yes, you will not be prompted for credentials in any future sessions. All credentials are stored in the "/~/.eodms/config.ini file" (the password is encrypted). If you wish to replace the default username and password, remove the values from the configuration file, leaving the keys with equal signs, and the script will prompt you again.

Step 3 - Choose Process Option

When prompted What would you like to do?, enter 4.

Step 4 - Order/Order Item IDs

Enter a list of Order IDs and/or Order Item IDs, separating each ID with a comma and separating Order IDs and Order Items with a vertical line (ex: 'orders:<order_id>,<order_id>|items:<order_item_id>,...'). Leave it blank to get all Order Items with status AVAILABLE_FOR_DOWNLOAD.

Step 5 - Enter Maximum Downloads

You can specify the maximum of order items would like to download. Leave it blank for no maximum.

Step 6 - Enter Output Geospatial File

Enter the relative or absolute path of the output geospatial file which will contain the images as polygons with metadata. Leave it blank for no output file.

The output file can be GeoJSON, KML, GML or Shapefile (requires GDAL Python package).

Processing

Downloads Order Items with Status AVAILABLE_FOR_DOWNLOAD

The script will get a list of order items with status AVAILABLE_FOR_DOWNLOAD and then download those images.

If you entered an output geospatial file in Step 6, the file should exist in the path you specified.