Skip to main content

Subpackage for working with 3DEP data in stactools, a command line tool and Python library for working with STAC.

Project description

stactools.threedep

The 3D Elevation Program (3DEP), formerly known as the National Elevation Dataset (NED), is elevation data for the United States. Because 3dep isn't a valid Python package name, this package is named stactools.threedep.

Usage

3DEP items are identified by two attributes: product and id. product is a string that corresponds to the nominal resolution of the data. Options are:

  • "1": 1 arc-second DEMs
  • "13" 1/3 arc-second DEMs

id is a lat-lon identifier, e.g. n41w106.

Command line

To build a pystac.Collection directly from AWS into a directory named usgs-3dep-stac:

stac threedep create-collection usgs-3dep-stac

If you want to two-step the process, you can download the metadata first:

stac threedep download-metadata usgs-3dep-metadata
stac threedep create-collection usgs-3dep-stac --source usgs-3dep-metadata

API

To create an item from AWS, use stactools.threedep.stac.create_item:

from stactools.threedep import stac
item = stac.create_item_from_product_and_id("1", "n41w106")

You can also create an item directly from the href of a metadata XML file anyhwere:

from stactools.threedep import stac
item = stac.create_item("ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/Staged/Elevation/1/TIFF/n41w106/USGS_1_n41w106.xml")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stactools_threedep-0.1.5.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

stactools_threedep-0.1.5-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file stactools_threedep-0.1.5.tar.gz.

File metadata

  • Download URL: stactools_threedep-0.1.5.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for stactools_threedep-0.1.5.tar.gz
Algorithm Hash digest
SHA256 930eba29c24547c13efa4dabfed3a589fadfab339f8f26b6633690754b3eb606
MD5 463b644a03d264545481f93e45fe175f
BLAKE2b-256 e72013ce5ff2300fe0d57d77efa19229a79b223b367d477bbf8b59ff12ec8105

See more details on using hashes here.

Provenance

File details

Details for the file stactools_threedep-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: stactools_threedep-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for stactools_threedep-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 83633b0bd56ac940df583446be7dc6b2c0598b5e70daf229003e666bba63aa3e
MD5 482a17e3e480ff0afb1f91e05fe04987
BLAKE2b-256 e882317596c245c79aee56a30466c39326f6a16ecf99d12b51b8e7b41cfe6f22

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page