quince-science / KPI

Data quality reports for data processed in QuinCe
MIT License
0 stars 2 forks source link

Create content to the 'Property-Property Plot' section of the report #14

Open cla023 opened 4 years ago

cla023 commented 4 years ago

Content should include delta T plots, and similar prop-prop plots (look for inspiration for such plots in the SOCAT QC Editor).

cla023 commented 4 years ago

Suggestion on how to facilitate the prop-prop plots section:

In KPI_main.py file: Need to adjust the structure of the 'render_dict' in order to avoid a lot of duplication in this dictionary:

  1. Change the 'meas_config' and 'calc_config' from dictionaries to lists, containing only the name of the parameter to include in these report sections (in other words: use the existing dictionary keys as list elements, remove the dictionary values)
  2. Add a 'custom_vocab_config' to the 'render_dict', containing only the vocab configs of the parameters in the new 'meas_config' and 'calc_config' list (see point 1)
  3. Loop through the 'custon_prop_config's x-axis and y-axis parameters, and add those missing ones to the 'custom_vocab_config'.

In base.html: Due to the above changes in the 'render_dict', we need to make adjustments in the base.html template file: all indexing in the previous 'meas_config' and 'calc_config' need to be changed since this information is now moved to the 'custom_vocab_config'.

UPDATE: The above changes has been made!

cla023 commented 4 years ago

Simple DeltaT plot function have been created, and gets included in the report. Look at how this was included when adding more such prop-prop plots.