From 0e9aa80b2de716b0f47ee4d06926483077df4e03 Mon Sep 17 00:00:00 2001 From: David Mocko Date: Wed, 18 Apr 2018 12:25:01 -0400 Subject: [PATCH] Added Greenbelt, MD to the list of cities. This addresses Issue #5. Greenbelt, MD is the home of NASA Goddard Space Flight Center's Hydrological Sciences Laboratory. Note that the mean, standard deviation, and number of day with precip numbers are randomly modified from Philadelphia's, and do not in any way represent actual values. --- cities/greenbelt.json | 17 +++++++++++++++++ wxgen.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 cities/greenbelt.json diff --git a/cities/greenbelt.json b/cities/greenbelt.json new file mode 100644 index 0000000..138b5e3 --- /dev/null +++ b/cities/greenbelt.json @@ -0,0 +1,17 @@ +{ + "name": "Greenbelt", + "state": "MD", + "high": { + "avg": 19.1, + "std": 2.9 + }, + "low": { + "avg": 5.3, + "std": 2.9 + }, + "precip": { + "yamt": 1053.0, + "std": 25.0, + "days": 130.0 + } +} diff --git a/wxgen.py b/wxgen.py index 619d5a6..e5b603e 100755 --- a/wxgen.py +++ b/wxgen.py @@ -13,7 +13,7 @@ from datetime import datetime # User settings -city_list = ["boulder","philadelphia"] +city_list = ["boulder","philadelphia","greenbelt"] fcst_path = "forecasts/{}.txt" num_days = 7