GRASS logo

NAME

m.download.tnm - Downloads data for specified polygon codes from The National Map (TNM).

KEYWORDS

USGS, The National Map, TNM

SYNOPSIS

m.download.tnm
m.download.tnm --help
m.download.tnm [-dsufS] [dataset=string[,string,...]] [type=string] [code=string[,string,...]] [date_type=string] [start_date=string] [end_date=string] [separator=character] [--help] [--verbose] [--quiet] [--ui]

Flags:

-d
List supported datasets and exit
-s
List supported states and exit
-u
List URLs only without downloading
-f
List filenames only without downloading
-S
Compare file size for skipping downloads
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

dataset=string[,string,...]
Dataset index, ID, or tag
type=string
Polygon type
Options: state, huc2, huc4, huc8
Default: state
code=string[,string,...]
Polygon code (state name, USPS code, FIPS code, or HUC number)
date_type=string
Date type for search
Options: created, updated, published
Default: published
start_date=string
Start date for search in YYYY-MM-DD
end_date=string
End date for search in YYYY-MM-DD
separator=character
Field separator
Special characters: pipe, comma, space, tab, newline
Default: pipe

Table of contents

DESCRIPTION

m.download.tnm downloads data for specified polygon codes from The National Map (TNM).

NOTES

This module uses the TNM Access REST APIs to download TNM data.

EXAMPLES

List supported datasets and exit:
# use indices, IDs, or tags to select datasets, but indices can change between
# sessions
m.download.tnm -d
List supported states and exit:
# use FIPS codes, USPS codes, or names to select states for type=state
m.download.tnm -s
Download National Elevation Dataset (NED) 1-arcsecond files for Texas:
# find the dataset ID
m.download.tnm -d | grep "NED.* 1 arc-second"
m.download.tnm dataset=one-arc-second-dem type=state code=TX
Download National Watershed Boundary Dataset (WBD) files for HUC8 01010001:
# find the dataset ID
m.download.tnm -d | grep WBD
m.download.tnm dataset=watershed-boundary-dataset type=huc8 code=01010001

AUTHOR

Huidae Cho, New Mexico State University

SOURCE CODE

Available at: m.download.tnm source code (history)

Latest change: Tuesday Sep 26 22:45:58 2023 in commit: 65f0dd8f2a10a235cbfeeaf995ac13cd1764ea07


Main index | Miscellaneous index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 8.3.1dev Reference Manual