From: Alexander Vasarab Date: Wed, 10 Feb 2021 08:08:46 +0000 (-0800) Subject: Update docs X-Git-Tag: v3.2.0^2~1^2~1 X-Git-Url: https://wylark.com/src/infoex-autowx.git/commitdiff_plain/350dfa9dbe58c5288140a3b9998514608f825f6c?ds=sidebyside Update docs --- diff --git a/README.md b/README.md index 16c76b2..170e2ed 100644 --- a/README.md +++ b/README.md @@ -233,6 +233,17 @@ which makes it into your operation is inaccurate, start your investigation with time zone-related issues and move on only once you've ruled this out as a cause of the inaccuracy. +Unit conversions +---------------- + +Desired units may be specified in the configuration file. + +For MesoWest, the desired unit will be passed along in the API request +and the conversion will take place through the MesoWest/Synoptic API. + +For NRCS, this program will do the conversion manually, as NRCS does not +permit specifying the desired unit. + A note on supported measurements -------------------------------- diff --git a/infoex-autowx.py b/infoex-autowx.py index 7ecf36e..e03a2b0 100755 --- a/infoex-autowx.py +++ b/infoex-autowx.py @@ -533,11 +533,6 @@ def switch_units_to_metric(data_map, mapping): # NOTE: to update this, use the fmap<->final_data mapping laid out # in setup_infoex_fields_mapping () - # - # NOTE: this only 'works' with MesoWest for now, as the MesoWest API - # itself handles the unit conversion; in the future, we will also - # support NRCS unit conversion, but this must be done by this - # program. data_map[mapping['tempMaxHourUnit']] = 'C' data_map[mapping['tempMinHourUnit']] = 'C' data_map[mapping['tempPresUnit']] = 'C'