Open scottylad501 opened 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.
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:
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