Closed djhocking closed 9 years ago
Used zoo
and dplyr
to calculate rolling means and find the warmest 90 days for each site-year then calculate resistance for that period of time.
Nice! What happens when there are less than 90 days in a year-site combo?
On Wed, Dec 24, 2014 at 12:21 PM, Daniel J. Hocking < notifications@github.com> wrote:
Used zoo and dplyr to calculate rolling means and find the warmest 90 days for each site-year then calculate resistance for that period of time.
— Reply to this email directly or view it on GitHub https://github.com/Conte-Ecology/conteStreamTemperature/issues/23#issuecomment-68065251 .
Silvio O. Conte Anadromous Fish Research Center, U.S. Geological Survey P.O. Box 796 -- One Migratory Way Turners Falls, MA 01376 (413) 863-3803 Cell: (413) 522-9417 FAX (413) 863-9810
ben_letcher@usgs.gov bletcher@eco.umass.edu http://www.lsc.usgs.gov/?q=cafb-research
It’s not a problem because I’m using daymet air temperature. That way it’s the resistance of the water temperature to the warmest period of air temperature (i.e. does the water temperature increase or flatten out and become less responsive during peak air temperature periods). I’m also doing it for the predicted stream temperatures so it should be continuous for the day met record.
Daniel J. Hocking
dhocking@unh.edumailto:dhocking@unh.edu http://danieljhocking.wordpress.com/
On Dec 24, 2014, at 12:54 PM, Ben Letcher notifications@github.com<mailto:notifications@github.com> wrote:
Nice! What happens when there are less than 90 days in a year-site combo?
On Wed, Dec 24, 2014 at 12:21 PM, Daniel J. Hocking < notifications@github.commailto:notifications@github.com> wrote:
Used zoo and dplyr to calculate rolling means and find the warmest 90 days for each site-year then calculate resistance for that period of time.
— Reply to this email directly or view it on GitHub https://github.com/Conte-Ecology/conteStreamTemperature/issues/23#issuecomment-68065251 .
Silvio O. Conte Anadromous Fish Research Center, U.S. Geological Survey P.O. Box 796 -- One Migratory Way Turners Falls, MA 01376 (413) 863-3803 Cell: (413) 522-9417 FAX (413) 863-9810
ben_letcher@usgs.govmailto:ben_letcher@usgs.gov bletcher@eco.umass.edumailto:bletcher@eco.umass.edu http://www.lsc.usgs.gov/?q=cafb-research
— Reply to this email directly or view it on GitHubhttps://github.com/Conte-Ecology/conteStreamTemperature/issues/23#issuecomment-68066799.
Currently, the peak air temp is for an arbitrary period (dOY that call in the summer). Make a function to do this for the warmest 60 or 90 days of the year for each site and year.