SpreadsheetAbsolutesFactory - absolute observations need valid flags from summary spreadsheet
- modify SpreadsheetSummaryFactory.py to set the valid flag in each Absolute object, and return the full reading regardless of whether any invalid absolutes existed;
- modify SpreadsheetAbsolutesFactory.py to use the updated SpreadsheetSummaryFactory to retrieve valid flags from summary spreadsheet files, and add these to the list of absolutes returned in each reading.
Details
Residual absolute observations were calculated and recorded in special spreadsheets for over 10 years. These spreadsheets have no quality flag to speak of, but they do hold the individual residual observation measurements, and are therefore critical to transferring previous residual measurements to the new operations database.
Reviews of these absolute observations were recorded in a separate "summary" spreadsheet, including a "rejected" flag in the J column corresponding to each absolute/baseline pair. These summary spreadsheets do not contain individual residual observation measurements, and are therefore not a complete record of absolutes needed for the new operations database.
There are currently two different factories in geomag-algorithms: SpreadsheetAbsolutesFactory and SpreadsheetSummaryFactory. The first is already used in the copy_absolutes.py application module in geomag-algorithms' processing folder. The second should be incorporated into the first, probably in the _parse_absolutes() definition, and used to determine if a given absolute measurement is "valid" or not.
One problem is that SpreadsheetSummaryFactory does not currently set and return the Absolute.valid object, but rather check to see if all absolutes for a particular reading are valid before returning it. This is not desirable, and should be modified to set the valid flag, and return the full reading regardless of whether any valid flags are true or not.