Open walkerjeffd opened 9 years ago
Are you deriving the masterData (from observed stream temperature and climate/daymet) or using it directly from the dropbox file?
Same result either way
Okay, this isn't really code I've worked on but I think I found the problem. The mini dataset that was in the dropbox masterData
file was only the MADEP data. These data are only from a narrow window in the summer. It's not enough of a time series to estimate the spring or fall breakpoints so they all get NA. When additional data is included those NA are replaced with the mean breakpoints from nearby sites (i.e. within HUC12, HUC8, or HUC4 depending what's available). Since these data contained no complete time series there was nothing to replace the NA with.
I have added a new masterData.RData
file to the dropbox folder. It includes all the data from MA. I've tested it manually reading in the data and it works. There are still a few NA at the end but not too many. It may be worth checking on those later but this will get you started.
Great, thanks!
I'm actually going to leave this open but change it to an enhancement label now (assuming it works for you) so that I remember to go back through and figure out what to do when there is only summer data like we could get from collaborators in other regions and to check on the remaining NA (maybe they just need to get the overall mean breakpoints).
Using the dropbox datasets (
masterData
,covariateData
), I tried to runbreakpoints.R
. The script runs but the resultingspringFallBPs
dataframe doesn't seem to have any breakpoints (all offinalSpringBP
andfinalFallBP
areNA
). Is this correct?Note that I just pushed an update to
breakpoints.R
to 1) load required libraries, 2) adddOY
andyear
columns tomasterData
, which were not in eithermasterData.RData
ortemperatureData.RData
. So you'll need to pull the master branch to get these minor updates to the script.After running through the script, I get: