From 151ab9af54efb4979aaede6bbb2dd90201d46634 Mon Sep 17 00:00:00 2001 From: jdevine Date: Thu, 26 Aug 2021 00:31:59 +0200 Subject: [PATCH] Replaced had_isd file with custom cara list Amended filename in data.py --- cara/data.py | 2 +- cara/data/.gitattributes | 1 + cara/data/hadisd_station_fullinfo_v311_202001p.txt | 3 --- 3 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 cara/data/.gitattributes delete mode 100644 cara/data/hadisd_station_fullinfo_v311_202001p.txt diff --git a/cara/data.py b/cara/data.py index 7b9f8d4b..956a906a 100644 --- a/cara/data.py +++ b/cara/data.py @@ -18,7 +18,7 @@ def location_to_weather_stn(location_loc): long = [] station_array = [] fixed_delimits = [0, 12, 13, 44, 51, 60, 69, 90, 91] - station_file = Path(__file__).parent / 'data' / 'hadisd_station_fullinfo_v311_202001p.txt' + station_file = Path(__file__).parent / 'data' / 'cara_weather_stations.txt' for line in station_file.open('rt'): start_end_positions = zip(fixed_delimits[:-1], fixed_delimits[1:]) diff --git a/cara/data/.gitattributes b/cara/data/.gitattributes new file mode 100644 index 00000000..e10c4351 --- /dev/null +++ b/cara/data/.gitattributes @@ -0,0 +1 @@ +cara_weather_stations.txt filter=lfs diff=lfs merge=lfs -text diff --git a/cara/data/hadisd_station_fullinfo_v311_202001p.txt b/cara/data/hadisd_station_fullinfo_v311_202001p.txt deleted file mode 100644 index 1747636a..00000000 --- a/cara/data/hadisd_station_fullinfo_v311_202001p.txt +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4843d34b6e4c26d4382860e011451d5f32157b9a3660830f8d2894a11d022298 -size 772370