From 1125fb69a58840298170b01102b8cce75ab752d1 Mon Sep 17 00:00:00 2001 From: Benjamin Root Date: Sat, 22 Apr 2017 16:54:21 -0400 Subject: [PATCH 1/3] Fix some typos in the readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aea2759..1fa3450 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ for windows ### for 99-get_data - $ conda install -c cartopy proj4 + $ conda install -c conda-forge cartopy proj4 ## Running @@ -24,4 +24,4 @@ All of the examples should be run from IPython as %run -i NN-FILE.py -and sholud each be self-contained. +and should each be self-contained. From 89863f73df5c74155bdfb0c70788215702f56a84 Mon Sep 17 00:00:00 2001 From: Benjamin Root Date: Sat, 22 Apr 2017 17:18:42 -0400 Subject: [PATCH 2/3] plot_aggregated_errorbar isn't in pddc_helpers.py --- 05-interactive_temperature.py | 1 - 1 file changed, 1 deletion(-) diff --git a/05-interactive_temperature.py b/05-interactive_temperature.py index 80dc864..ccc188c 100644 --- a/05-interactive_temperature.py +++ b/05-interactive_temperature.py @@ -1,7 +1,6 @@ import matplotlib.pyplot as plt from cycler import cycler from pddc_helpers import (load_bwi_data, aggregate_by_month, aggregate_by_day, - plot_aggregated_errorbar, extract_day_of_hourly, extract_month_of_daily) From ea474580a5810adba6c48bab2cf3a0d5b8a80b57 Mon Sep 17 00:00:00 2001 From: Benjamin Root Date: Sat, 22 Apr 2017 17:38:49 -0400 Subject: [PATCH 3/3] Add a makedirs for 99-getdata.py --- 99-get_data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/99-get_data.py b/99-get_data.py index 4d4564b..76f617c 100644 --- a/99-get_data.py +++ b/99-get_data.py @@ -21,6 +21,7 @@ def get_filtered_isd(data_dir, s_date=None, f_date=None, fname = 'isd-history.csv' target_file = os.path.join(data_dir, fname) + os.makedirs(data_dir, exist_ok=True) if not os.path.exists(target_file) and allow_download: url_target = 'ftp://ftp.ncdc.noaa.gov/pub/data/noaa/isd-history.csv' with open(target_file, 'wb') as fout: