Update docs
authorAlexander Vasarab <alexander@wylark.com>
Wed, 10 Feb 2021 08:08:46 +0000 (00:08 -0800)
committerAlexander Vasarab <alexander@wylark.com>
Wed, 10 Feb 2021 08:08:46 +0000 (00:08 -0800)
README.md
infoex-autowx.py

index 16c76b2993c0d6213ae5e49f833c06afe4d510ff..170e2ed69927ee7f5bf0295247068793c9ee28f9 100644 (file)
--- 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
 --------------------------------
 
index 7ecf36eaab34e3b47fc95994489222525d32b5ac..e03a2b01e0bbbc589ae740a5950f88c36d33d080 100755 (executable)
@@ -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'