From 23b4d900bf281d1d5ca18d3a3cf2074b66c693b6 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Fri, 1 Mar 2019 07:28:15 +1100 Subject: [PATCH] Add doc folder --- doc/demo.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/demo.py diff --git a/doc/demo.py b/doc/demo.py new file mode 100644 index 0000000..1953433 --- /dev/null +++ b/doc/demo.py @@ -0,0 +1,17 @@ +from waternsw_grabber import telemetered_bore_downloader, extract_records + +download_dir = 'downloads' +output_dir = 'csv' +start_date = '1900-01-01' +end_date = '2019-02-14' +bore_ids = [ + 'GW039102.1.1', + 'GW039114.1.1', + 'GW039117.1.1', +] + +# Download bore records +telemetered_bore_downloader(bore_ids, start_date, end_date, download_dir) + +# Extract zip archives +extract_records(download_dir, output_dir, clean_up=False)