Skip to content

earthlab/OpenTopoDL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenTopoDL

A python script to download data in bulk from OpenTopo

Description

OpenTopo is home to a mass of free, accessible topography data. These data include lidar point clouds and digital elevation model rasters. This python script automates the process of selecting and downloading data.

Running w/ User Input

If you don't know what format of data you want and/or the numbers corresponding to specific datasets on OpenTopo's website, this script will list the available datasets for download for the data format you request at the expense of your user input. Simply place the script in the directory you wish to download data to and run:

python OpenTopoDL.py

Upon execution, you will be prompted if you want to download Lidar or Raster data. Input 'l' or 'L' for Lidar data and 'r' or 'R' for Raster data. Next, the available datasets for that format will be listed. Proceed by inputting the number corresponding to the dataset you wish to download. Once completed, the data for the specified dataset will be downloaded to your local machine.

Running Directly from the Command Line

If you already know the data format and the number of the dataset you wish to download, you can run this script directly from the command line and avoid any user input. Command line arguments are as follows:

  1. OpenTopoDL.py
  2. 'l' for lidar data or 'r' for Raster data
  3. The number of the dataset you wish to download

An example is provided below:

python OpenTopoDL.py l 2

Running this will download the Lidar dataset listed as #2 (Tushar Mountains, Utah) on the OpenTopo website.

About

Programmatic access to OpenTopography data via Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%