Open gdelaplante opened 2 months ago
Table structure and SQL operations created: public.corrections holds the corrections and their periods of applicability public.correction_types holds information regarding the corrections, their priority of application, etc. function apply_corrections contains the logic for applying corrections view public.measurements_continuous_corrected and public.measurements_discrete_corrected apply this function to output corrected timeseries
Still missing:
An additional useful functionality is creating calculated (such as specific conductivity), compound (such as multiple climate stations), or derived timeseries. A draft workflow is in file dev/calculated_derived_tsids.R. Implementing this would require:
AquaCache is not currently set up to accept or apply corrections to data. In the even that this is needed/desired, a process similar to that used by Aquarius can be considered. A table structure has been created to hold this information and is in the dev/data_corrections.R file.
Missing is a views table that mirrors measurements_xxxx tables but applies corrections to the data passed through. Notes to this effect are included in the file.