Skip to content

bryanparthum/prism_weather_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prism Weather Data

This repository provides a framework for directly downloading weather data from Oregon State's Parameter-elevation Regressions on Independent Slopes Model (PRISM) and works in conjunction with rOpenSci.org/prism.

Included is code that recovers PRISM dailys directly from the API, downloads to a temporary folder, reads a provided polygon shapefile (here, I use the National Hydrography Dataset Plus data at the HUC-12 level), extracts the average weather variable of interest across the polygon (precipitation used here), and exports a lightweight .feather file for use in analyses.

Two scripts are provided.

  • get_prisim_loop.R: This code will execute the extraction one day at a time across the specified timeframe.
  • get_prism_parallel.R This code will recover the available number of processors available on your machine, and run the extraction in parallel.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages