5 "execution_count": null,
6 "id": "761f5ca8-5ec1-4eda-a5ce-03207275819a",
10 "import data_funcs as datf\n",
11 "from data_funcs import format_raws, retrieve_raws, format_precip, fixnan, load_and_fix_data\n",
12 "from data_funcs import raws_data, synthetic_data, plot_data, check_data, rmse_data, to_json, from_json\n",
13 "from utils import print_dict_summary"
18 "execution_count": null,
19 "id": "3184b2a0-0049-4964-9b1c-d88b9634f55c",
23 "dict_file='data/testing_dict.pickle' # input path of FMDA dictionaries\n",
24 "dict_dir='fmda_data_dicts' # input path of FMDA dictionaries"
29 "execution_count": null,
30 "id": "760e93a5-e347-4ca2-8072-a2ef830e15a3",
34 "d=load_and_fix_data(dict_file)"
39 "execution_count": null,
40 "id": "b6581fab-1cf4-4a8e-96f1-605f13b45e80",
45 "for file in [path for path in os.listdir(dict_dir) if path.endswith('pickle')]:\n",
46 " filename = os.path.join(dict_dir,os.fsdecode(file))\n",
48 " d=load_and_fix_data(dict_file)\n",
49 " print_dict_summary(d)"
54 "execution_count": null,
55 "id": "2f446888-2344-4db6-907f-aa258d6561eb",
64 "execution_count": null,
65 "id": "c679ac3d-b9de-4398-9312-94bcd27b3592",
71 "query = ('https://api.open-elevation.com/api/v1/lookup' f'?locations={lat},{long}')"
76 "execution_count": null,
77 "id": "4287e2a5-debf-4b50-bf62-9f9ffcfea544",
86 "execution_count": null,
87 "id": "38eab8f1-aab5-429b-986d-0b86e7e8045b",
92 "r = requests.get(query).json() "
97 "execution_count": null,
98 "id": "db90180f-e229-4d2e-82bc-bef7743f1ff4",
107 "execution_count": null,
108 "id": "81bb5466-e2e7-4541-9b4a-0166d6411e68",
112 "e=r['results'][0]['elevation']"
117 "execution_count": null,
118 "id": "a2d1bc08-649f-4e65-9d9b-dcd04d3dd440",
127 "execution_count": null,
128 "id": "32687b73-a1c7-42d1-8806-c292512af36c",
136 "display_name": "Python 3 (ipykernel)",
137 "language": "python",
145 "file_extension": ".py",
146 "mimetype": "text/x-python",
148 "nbconvert_exporter": "python",
149 "pygments_lexer": "ipython3",