Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.
NAME
m.prism.download - Downloads data from the PRISM Climate Group.
KEYWORDS
PRISM,
Climate data
SYNOPSIS
m.prism.download
m.prism.download --help
m.prism.download [-duf] [dataset=string[,string,...]] [start_date=string] [end_date=string] [separator=character] [--help] [--verbose] [--quiet] [--ui]
Flags:
- -d
- List supported datasets and exit
- -u
- List URLs only without downloading
- -f
- List filenames only without downloading
- --help
- Print usage summary
- --verbose
- Verbose module output
- --quiet
- Quiet module output
- --ui
- Force launching GUI dialog
Parameters:
- dataset=string[,string,...]
- Dataset index or ID
- start_date=string
- Start date for search in YYYY-MM-DD (today for today; first for first date of first data year)
- end_date=string
- End date for search in YYYY-MM-DD (today for today; first for last date of first data year)
- separator=character
- Field separator
- Special characters: pipe, comma, space, tab, newline
- Default: pipe
m.prism.download downloads data from
the PRISM Climate Group.
This module anonymously logs in to
their FTP server
(
HTTPS server for easier
browsing) and download climate data for a specified time period.
List supported datasets and exit:
# use indices or datasets, but indices can change between module versions
m.prism.download -d
Download daily precipitation from 2020-01-01 to today:
# find the dataset name
m.prism.download -d | grep "daily" # found daily/ppt
# just list URLs for now
m.prism.download dataset=daily/ppt start_date=2020-01-01 end_date=today -u sep=newline
# actually download files
m.prism.download dataset=daily/ppt start_date=2020-01-01 end_date=today
# do something with the downloaded files
for file in $(m.prism.download dataset=daily/ppt start_date=2020-01-01 end_date=today -f sep=newline); do
echo $file
unzip $file
# more tasks...
done
m.cdo.download,
m.tnm.download
Huidae Cho, New Mexico State University
SOURCE CODE
Available at:
m.prism.download source code
(history)
Latest change: Monday Jun 03 10:16:52 2024 in commit: 29ef0ea69233043539ac317276d35736f9725f79
Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.
Main index |
Miscellaneous index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2023
GRASS Development Team,
GRASS GIS 8.2.2dev Reference Manual