Created
June 3, 2026 16:19
-
-
Save realmiketalbot/ee6ff12d0ff84f59bd453ae44a1bfd85 to your computer and use it in GitHub Desktop.
Download PRISM time series data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # this is the new URL and directory structure as of September 2025 | |
| SOURCE_URL="ftp://prism.oregonstate.edu/time_series/us/an/4km/" | |
| # point to the PARENT folder. | |
| # wget will append the remote path (/PRISM/time_series/...) to this. | |
| LOCAL_DIR="/your/download/directory" | |
| # 2. EXECUTION | |
| # -------------------- | |
| # -m : Mirror mode | |
| # -np : No Parent | |
| # -nH : No Host directories (Do not create 'prism.oregonstate.edu') | |
| # -P : Directory Prefix (The base folder) | |
| # --passive-ftp : Use passive mode | |
| wget -m -np -nH --passive-ftp -P "$LOCAL_DIR" "$SOURCE_URL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment