Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WA storage method differences of >365 days #1351

Open
gmahadwar opened this issue Sep 9, 2024 · 0 comments
Open

WA storage method differences of >365 days #1351

gmahadwar opened this issue Sep 9, 2024 · 0 comments
Assignees

Comments

@gmahadwar
Copy link
Contributor

gmahadwar commented Sep 9, 2024

Lake Philpott & Dam OD2_8560_8630 has 513 days difference between storage methods
This is to investigate why within WaterAvailability_CaseStudies.Rmd

Could one of these end years cause a >365 day difference?
Answer: we trim for a warmup period, so this is unlikely to cause a problem unless something is in the last 3months of the run

 #Trim runfile
    syear = as.integer(min(dat$year))
    eyear = as.integer(max(dat$year))
    if (syear < (eyear - 2)) {
      sdate <- as.POSIXct(paste0(syear,"-10-01"))
      edate <- as.POSIXct(paste0(eyear,"-09-30"))
    } else {
      sdate <- as.POSIXct(paste0(syear,"-02-01"))
      edate <- as.POSIXct(paste0(eyear,"-12-31"))

We do calculate using calendar year:

      l90 <- loflows["90 Day Min"];
      ndx <- which.min(as.numeric(l90[,"90 Day Min"]));
      l90_Qout <- round(loflows[ndx,]$`90 Day Min`,6);
      l90_year <- loflows[ndx,]$`year`;
      l90yr_start <- as.POSIXct(paste0(l90_year,"-01-01")) #start of l90 year
      l90yr_end <- as.POSIXct(paste0(l90_year,"-12-31")) #end of l90 year
      datpd_90yr <- window( #data for the l90 year
        dat,
        start = l90yr_start,
        end = l90yr_end
      )

Other potential causes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants