opencdms / surface

GNU General Public License v3.0
6 stars 4 forks source link

QC #1 - Update SURFACE QC range features #41

Open scottylad501 opened 2 years ago

scottylad501 commented 2 years ago

Use seasonal(monthly) thresholds from station for reference or global range thresholds

ALSO create QC reference stations based on the mappings in the attached document

QC_Range_Station_Mapping.xlsx

This should be added to NEW STATION metadata

fabiosato commented 2 years ago

@AbnerBissolli first let's clean the code by removing functions/queries in tasks.py related to the QC range test that are not being used and also remove qc range unused columns in StationVariable model.

fabiosato commented 2 years ago

Implementation steps:

1 - Add 'reference_station' field to wx.Station model. This should be a foreign key pointing to the same table. 2 - Update insert_raw_data.py at line 128 with the following logic: