kristinemlarson / gnssrefl

GNSS Interferometric Reflectometry Software (GNSS-IR)
GNU General Public License v3.0
157 stars 76 forks source link

Td meta 52 #157

Closed timdittmann closed 1 year ago

timdittmann commented 1 year ago

This PR addresses issue: https://github.com/kristinemlarson/gnssrefl/issues/52

make_meta.py generates a simple station-level metadata store (in json) adjacent to the processing configuration json file. The store includes station, lat, long, height and meta keys, where meta values are datetime keys associated with metadata state values (strings of Rx make/model, antenna, dome and FW).

the default is that the user manually input this metadata state information (-man_input True). the user can extract antenna changes from the GAGE offset file (-read_offset true). This also adds prior and swap fields, as known metadata state changes are particularly useful information. However, this file is incomplete wrt to number of stations (many, but not all) and changes (includes all antenna swaps, but only some receivers). So the user should know it is is complimentary but not complete.

LLH is automatically pulled from the UNR database, unless the user includes -lat -lon args following the refl_zones workflow, in which case the user can manually add station coords.

Finally, the default is set to not overwrite any existing meta store, and append any new information the user adds, unless the user sets -overwrite True.