-
Notifications
You must be signed in to change notification settings - Fork 8
Process 4
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.
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.
When prompted What would you like to do?
, enter 4
.
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.
You can specify the maximum of order items would like to download. Leave it blank for no maximum.
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).
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.