Skip to content

Instantly share code, notes, and snippets.

@realmiketalbot
Created June 3, 2026 16:19
Show Gist options
  • Select an option

  • Save realmiketalbot/ee6ff12d0ff84f59bd453ae44a1bfd85 to your computer and use it in GitHub Desktop.

Select an option

Save realmiketalbot/ee6ff12d0ff84f59bd453ae44a1bfd85 to your computer and use it in GitHub Desktop.
Download PRISM time series data
#!/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