|
34 | 34 | "outputs": [], |
35 | 35 | "source": [ |
36 | 36 | "import wradlib as wrl\n", |
| 37 | + "import wradlib_data\n", |
37 | 38 | "import numpy as np\n", |
38 | 39 | "\n", |
39 | 40 | "import warnings\n", |
|
67 | 68 | "metadata": {}, |
68 | 69 | "outputs": [], |
69 | 70 | "source": [ |
70 | | - "cdp_file = wrl.util.get_wradlib_data_file(\"misc/hmcp_centroids_dp.nc\")\n", |
| 71 | + "cdp_file = wradlib_data.DATASETS.fetch(\"misc/hmcp_centroids_dp.nc\")\n", |
71 | 72 | "with xr.open_dataset(cdp_file) as cdp:\n", |
72 | 73 | " pass\n", |
73 | 74 | "cdp" |
|
80 | 81 | "metadata": {}, |
81 | 82 | "outputs": [], |
82 | 83 | "source": [ |
83 | | - "weights_file = wrl.util.get_wradlib_data_file(\"misc/hmcp_weights.nc\")\n", |
| 84 | + "weights_file = wradlib_data.DATASETS.fetch(\"misc/hmcp_weights.nc\")\n", |
84 | 85 | "with xr.open_dataset(weights_file) as cw:\n", |
85 | 86 | " pass\n", |
86 | 87 | "cw" |
|
101 | 102 | "metadata": {}, |
102 | 103 | "outputs": [], |
103 | 104 | "source": [ |
104 | | - "volume = wrl.util.get_wradlib_data_file(\"netcdf/KDDC_2018_0625_051138_min.cf\")\n", |
| 105 | + "volume = wradlib_data.DATASETS.fetch(\"netcdf/KDDC_2018_0625_051138_min.cf\")\n", |
105 | 106 | "gr_data = xd.io.open_cfradial1_datatree(volume)\n", |
106 | 107 | "gr_data" |
107 | 108 | ] |
|
135 | 136 | " )\n", |
136 | 137 | "except (urllib.error.HTTPError, urllib.error.URLError):\n", |
137 | 138 | " print(\"service down\")\n", |
138 | | - " dataf = wrl.util.get_wradlib_data_file(\"misc/radiosonde_72451_20180625_0000.h5\")\n", |
| 139 | + " dataf = wradlib_data.DATASETS.fetch(\"misc/radiosonde_72451_20180625_0000.h5\")\n", |
139 | 140 | " rs_data, _ = wrl.io.from_hdf5(dataf)\n", |
140 | | - " metaf = wrl.util.get_wradlib_data_file(\"misc/radiosonde_72451_20180625_0000.json\")\n", |
| 141 | + " metaf = wradlib_data.DATASETS.fetch(\"misc/radiosonde_72451_20180625_0000.json\")\n", |
141 | 142 | " with open(metaf, \"r\") as infile:\n", |
142 | 143 | " import json\n", |
143 | 144 | "\n", |
|
0 commit comments