Skip to content

Commit

Permalink
m.tnm.download: Renamed from m.download.tnm to be consistent with oth…
Browse files Browse the repository at this point in the history
…er *.*.download (#961)
  • Loading branch information
HuidaeCho authored Oct 21, 2023
1 parent 179d56a commit 5ccf5ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/misc/m.download.tnm/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MODULE_TOPDIR = ../..

PGM = m.download.tnm
PGM = m.tnm.download

include $(MODULE_TOPDIR)/include/Make/Script.make

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h2>DESCRIPTION</h2>

<em>m.download.tnm</em> downloads data for specified polygon codes from <a href="https://apps.nationalmap.gov/downloader/">The National Map (TNM)</a>.
<em>m.tnm.download</em> downloads data for specified polygon codes from <a href="https://apps.nationalmap.gov/downloader/">The National Map (TNM)</a>.


<h2>NOTES</h2>
Expand All @@ -14,27 +14,27 @@ <h2>EXAMPLES</h2>
<div class="code"><pre>
# use indices, IDs, or tags to select datasets, but indices can change between
# sessions
m.download.tnm -d
m.tnm.download -d
</pre></div>

List supported states and exit:
<div class="code"><pre>
# use FIPS codes, USPS codes, or names to select states for type=state
m.download.tnm -s
m.tnm.download -s
</pre></div>

Download National Elevation Dataset (NED) 1-arcsecond files for Texas:
<div class="code"><pre>
# 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
m.tnm.download -d | grep "NED.* 1 arc-second"
m.tnm.download dataset=one-arc-second-dem type=state code=TX
</pre></div>

Download National Watershed Boundary Dataset (WBD) files for HUC8 01010001:
<div class="code"><pre>
# find the dataset ID
m.download.tnm -d | grep WBD
m.download.tnm dataset=watershed-boundary-dataset type=huc8 code=01010001
m.tnm.download -d | grep WBD
m.tnm.download dataset=watershed-boundary-dataset type=huc8 code=01010001
</pre></div>


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
############################################################################
#
# MODULE: m.download.tnm
# MODULE: m.tnm.download
# AUTHOR(S): Huidae Cho <grass4u gmail.com>
# PURPOSE: Downloads data for specified polygon codes from The National
# Map (TNM).
Expand Down

0 comments on commit 5ccf5ae

Please sign in to comment.