techwithtim / Flask-Web-App-Tutorial

Code for the note storing flask web app made during a YouTube video.
938 stars 1.03k forks source link

address challenges encountered in implementing the QC test on the data arrays #144

Closed leilabbb closed 9 months ago

leilabbb commented 9 months ago

This issue was created based on findings from working on #277

The QC process needs additional conditional statements to handle special cases of data arrays. The following have been already identified and are being tested:

Check the time array for invalid timestamps, duplicate timestamps, and non-ascending timestamps Check the legacy variable array for an empty array, an array with all fill values, or nans Check the legacy variables' standard names for non-CF compliant names Check variables sharing the same standard name as the legacy variables

In the above cases, the QC tests are skipped and the QARTOD variable is filled with FLAG 2: NOT_EVALUATED, and the dac_comment attribute is annotated with failing test results.