HARPgroup / HARParchive

This repo houses HARP code development items, resources, and intermediate work products.
1 stars 0 forks source link

Baseflow Diagrams - Time Series Analysis #280

Open juliabruneau opened 2 years ago

juliabruneau commented 2 years ago

What is the overall set of questions? @juliabruneau

Examples of each function were created by using the AGWS (active groundwater storage) values from the PWATER table in A51800.

The functions used:

juliabruneau commented 2 years ago

A box plot graph comparing the active groundwater storage during summer and winter months from 1984 to 2020.

image

julieshortridge commented 2 years ago

Thanks, it's impressive what you've pulled together since Monday. One note on the "decompose" function. Looking through the markup, I saw this: "Our data is multiplicative since the amplitude of the seasonal component changes with the seemingly decreasing trend." Is this something you tested for specifically or just a visual observation? Unless there's a compelling reason not to, I'd suggest doing an additive decomposition as well.

rburghol commented 2 years ago

Ok so this is really excellent. I will need a primer on understanding the decomposition charts so that I might form an opinion in additive versus multiplicative :). Thanks for keeping me posted!

juliabruneau commented 2 years ago

Reference: https://online.stat.psu.edu/stat510/lesson/5/5.1

ADDITIVE = Trend + Seasonal + Random useful when the seasonal variation is relatively constant over time

MULTIPLICATIVE = Trend Seasonal Random useful when the seasonal variation increases over time

  1. Estimate trend (moving averages/regression equation)
  2. "De-trend" the series;
    • Additive - subtract the trend estimates from the series
    • Multiplicative - divide the series by the trend values
  3. Averaging the de-trended values for a specific season to estimate seasonal factors
  4. Determining the random (irregular) component
    • Additive - random = series – trend – seasonal
    • Multiplicative - random = series / (trend*seasonal)

RESULTS $seasonal

$figure

$trend

$random (residuals)


juliabruneau commented 2 years ago

AGWS yearly median with linear trendline:

image

juliabruneau commented 2 years ago

@rburghol

EDIT: Updated 25th percentile graph!

image

rburghol commented 2 years ago

I like this combined 50/25 graph. Economical :). Yes, still include stats, as this is only a single land segment, and we don't know if they will all be so uniform. Even so, the slopes are our only quantitative measures, and as we will be looking at 125 land segments x 35-50 land uses we will have 4,000-6,000 charts to review -- numerical values become essential in picking out the places where important/interesting things might happen.

juliabruneau commented 2 years ago

I like this combined 50/25 graph. Economical :). Yes, still include stats, as this is only a single land segment, and we don't know if they will all be so uniform. Even so, the slopes are our only quantitative measures, and as we will be looking at 125 land segments x 35-50 land uses we will have 4,000-6,000 charts to review -- numerical values become essential in picking out the places where important/interesting things might happen.

Sounds good. Just to clarify - even if we have both the median and the 25th percentile graph here, you would also like a separate graph with just the median in VAHydro?

juliabruneau commented 2 years ago

UPDATE:

rburghol commented 2 years ago

image

rburghol commented 2 years ago

image

juliabruneau commented 2 years ago

Summary script: hsp_pwater_stats.R

In VAHydro (graphs & summary stats):

The results: http://deq1.bse.vt.edu:81/d.dh/om-model-info/6828217 ; image

rburghol commented 2 years ago

@juliabruneau this looks great. Thanks!

jdkleiner commented 2 years ago

@juliabruneau Awesome! 1 suggestion, if the stats are specific to just one of those plots, I would house the stats and the plot image under a common property 'container'.

Example: http://deq1.bse.vt.edu:81/d.dh/om-model-info/6349867

glenncampagna commented 2 years ago

Using containers in VAHydro

@jdkleiner we implemented the changes that you suggested, so now the exports to VAHydro are more organized:

image

image

image

The second and third images are inside of the AGWS25perc and AGWSmedian containers To-do: make container propcodes (instead of having a '0')