USGS-R / drb-estuary-salinity-ml

Creative Commons Zero v1.0 Universal
0 stars 4 forks source link

add fetch_gridmet.R #60

Closed galengorski closed 2 years ago

galengorski commented 2 years ago

This is adding an R script that pulls gridMET data using the climateR package in R. It isn't incorporated in the pipeline yet, but it could be if we decide this is the way we want to go. Right now the script has no config file.

I manually made a dataframe with three stations and their lat/long. The stations are Ben Franklin Bridge (benfranklin), Lewes Delaware (lewes), and Reedy Island Jetty (reedyislandjetty).

I also manually coded in the start date and end date for pulling data.

The for loop then loops through the three sites, pulling the nearest gridMET pixel to each location and then saving a daily csv for each site.