KateriSalk / Alaska_IR_Automation

0 stars 1 forks source link

Investigate dissolved oxygen exceedance #27

Open petjen25 opened 4 months ago

petjen25 commented 4 months ago

https://github.com/KateriSalk/Alaska_IR_Automation/blob/55232c13b2591cb37aa75c06c7b52826d825f809/Code/6_Analysis/magdurfreq_functions.R#L321-L338

I think there might be something weird going on here. The dissolved oxygen MDF analysis for AK_R_1030106_014 shows exceedances of all minimums. For that same AU, we found no exceedances of minimum DO. There are 16 sample dates for both the code and our analysis. When I took the data used in the code (from WQ_data_trimmed_long_with_AU) I found only one of those sample date averages was below the minimum criteria (magnitude). With 16 dates total, one day average being below the minimum criteria would be a 6.25% exceedance frequency. To be an exceedance, 10% of sample date averages would be below the minimum criteria.

Maybe there is some rounding going on that is making 6.25% look like 10%, or 0.0625 look like 0.10? Or something else?