Spaces:
Sleeping
Sleeping
Added predictions for Yamuna Feb24, and clened up code
Browse files- pages/01_predictions.py +5 -365
- public/river_oos_dataset_v0.2_20240210.json +20 -10
pages/01_predictions.py
CHANGED
|
@@ -27,136 +27,6 @@ except:
|
|
| 27 |
except:
|
| 28 |
dataset = [
|
| 29 |
|
| 30 |
-
{
|
| 31 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/ganga/2022-10-01/S1/ganga_s1_2022-10-01.tif",
|
| 32 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/ganga/2022-10-01/S2/ganga_s2_2022-10-01.tif",
|
| 33 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/ganga/2022-10-01/S2_L1C/ganga_s2l1c_2022-10-01.tif",
|
| 34 |
-
"date": "2022-10-01",
|
| 35 |
-
"river": "ganga",
|
| 36 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/ganga/ganga.geojson",
|
| 37 |
-
"uri_to_prediction": "",
|
| 38 |
-
"uid": "6r8ypwmb"
|
| 39 |
-
},
|
| 40 |
-
{
|
| 41 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/hooghly/2022-10-01/S1/hooghly_s1_2022-10-01.tif",
|
| 42 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/hooghly/2022-10-01/S2/hooghly_s2_2022-10-01.tif",
|
| 43 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/hooghly/2022-10-01/S2_L1C/hooghly_s2l1c_2022-10-01.tif",
|
| 44 |
-
"date": "2022-10-01",
|
| 45 |
-
"river": "hooghly",
|
| 46 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/hooghly/hooghly.geojson",
|
| 47 |
-
"uri_to_prediction": "",
|
| 48 |
-
"uid": "6r8ypwmb"
|
| 49 |
-
},
|
| 50 |
-
{
|
| 51 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/damodar/2022-10-01/S1/damodar_s1_2022-10-01.tif",
|
| 52 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/damodar/2022-10-01/S2/damodar_s2_2022-10-01.tif",
|
| 53 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/damodar/2022-10-01/S2_L1C/damodar_s2l1c_2022-10-01.tif",
|
| 54 |
-
"date": "2022-10-01",
|
| 55 |
-
"river": "damodar",
|
| 56 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/damodar/damodar.geojson",
|
| 57 |
-
"uri_to_prediction": "",
|
| 58 |
-
"uid": "6r8ypwmb"
|
| 59 |
-
},
|
| 60 |
-
{
|
| 61 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/mahananda/2022-10-01/S1/mahananda_s1_2022-10-01.tif",
|
| 62 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/mahananda/2022-10-01/S2/mahananda_s2_2022-10-01.tif",
|
| 63 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/mahananda/2022-10-01/S2_L1C/mahananda_s2l1c_2022-10-01.tif",
|
| 64 |
-
"date": "2022-10-01",
|
| 65 |
-
"river": "mahananda",
|
| 66 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/mahananda/mahananda.geojson",
|
| 67 |
-
"uri_to_prediction": "",
|
| 68 |
-
"uid": "6r8ypwmb"
|
| 69 |
-
},
|
| 70 |
-
{
|
| 71 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/mayurakshi/2022-10-01/S1/mayurakshi_s1_2022-10-01.tif",
|
| 72 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/mayurakshi/2022-10-01/S2/mayurakshi_s2_2022-10-01.tif",
|
| 73 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/mayurakshi/2022-10-01/S2_L1C/mayurakshi_s2l1c_2022-10-01.tif",
|
| 74 |
-
"date": "2022-10-01",
|
| 75 |
-
"river": "mayurakshi",
|
| 76 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/mayurakshi/mayurakshi.geojson",
|
| 77 |
-
"uri_to_prediction": "",
|
| 78 |
-
"uid": "6r8ypwmb"
|
| 79 |
-
},
|
| 80 |
-
{
|
| 81 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/sone/2022-10-01/S1/sone_s1_2022-10-01.tif",
|
| 82 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/sone/2022-10-01/S2/sone_s2_2022-10-01.tif",
|
| 83 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/sone/2022-10-01/S2_L1C/sone_s2l1c_2022-10-01.tif",
|
| 84 |
-
"date": "2022-10-01",
|
| 85 |
-
"river": "sone",
|
| 86 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/sone/sone.geojson",
|
| 87 |
-
"uri_to_prediction": "",
|
| 88 |
-
"uid": "6r8ypwmb"
|
| 89 |
-
},
|
| 90 |
-
{
|
| 91 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/sone/2023-05-01/S1/sone_s1_2023-05-01.tif",
|
| 92 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/sone/2023-05-01/S2/sone_s2_2023-05-01.tif",
|
| 93 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/sone/2023-05-01/S2_L1C/sone_s2l1c_2023-05-01.tif",
|
| 94 |
-
"date": "2023-05-01",
|
| 95 |
-
"river": "sone",
|
| 96 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/sone/sone.geojson",
|
| 97 |
-
"uri_to_prediction": "",
|
| 98 |
-
"uid": "6r8ypwmb"
|
| 99 |
-
},
|
| 100 |
-
{
|
| 101 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/sone/2023-04-01/S1/sone_s1_2023-04-01.tif",
|
| 102 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/sone/2023-04-01/S2/sone_s2_2023-04-01.tif",
|
| 103 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/sone/2023-04-01/S2_L1C/sone_s2l1c_2023-04-01.tif",
|
| 104 |
-
"date": "2023-04-01",
|
| 105 |
-
"river": "sone",
|
| 106 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/sone/sone.geojson",
|
| 107 |
-
"uri_to_prediction": "",
|
| 108 |
-
"uid": "6r8ypwmb"
|
| 109 |
-
},
|
| 110 |
-
{
|
| 111 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-10-01/S1/chambal_s1_2022-10-01.tif",
|
| 112 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-10-01/S2/chambal_s2_2022-10-01.tif",
|
| 113 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-10-01/S2_L1C/chambal_s2l1c_2022-10-01.tif",
|
| 114 |
-
"date": "2022-10-01",
|
| 115 |
-
"river": "chambal",
|
| 116 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 117 |
-
"uri_to_prediction": "",
|
| 118 |
-
"uid": "6r8ypwmb"
|
| 119 |
-
},
|
| 120 |
-
{
|
| 121 |
-
"uri_to_s1": "",
|
| 122 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2023-03-01/S2/chambal_s2_2023-03-01.tif",
|
| 123 |
-
"uri_to_s2_l1c": "",
|
| 124 |
-
"date": "2023-03-01",
|
| 125 |
-
"river": "chambal",
|
| 126 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 127 |
-
"uri_to_prediction": "",
|
| 128 |
-
"uid": "6r8ypwmb"
|
| 129 |
-
},
|
| 130 |
-
# {
|
| 131 |
-
# "uri_to_s1": "",
|
| 132 |
-
# "uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2023-12-01/S2/chambal_s2_2023-12-01.tif",
|
| 133 |
-
# "uri_to_s2_l1c": "",
|
| 134 |
-
# "date": "2023-12-01",
|
| 135 |
-
# "river": "chambal",
|
| 136 |
-
# "uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 137 |
-
# "uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal_prediction_2023-12-01_6r8ypwmb.tif",
|
| 138 |
-
# "uid": "6r8ypwmb"
|
| 139 |
-
# },
|
| 140 |
-
{
|
| 141 |
-
"uri_to_s1": "",
|
| 142 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2023-11-01/S2/chambal_s2_2023-11-01.tif",
|
| 143 |
-
"uri_to_s2_l1c": "",
|
| 144 |
-
"date": "2023-11-01",
|
| 145 |
-
"river": "chambal",
|
| 146 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 147 |
-
"uri_to_prediction": "",
|
| 148 |
-
"uid": "6r8ypwmb"
|
| 149 |
-
},
|
| 150 |
-
{
|
| 151 |
-
"uri_to_s1": "",
|
| 152 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2023-10-01/S2/chambal_s2_2023-10-01.tif",
|
| 153 |
-
"uri_to_s2_l1c": "",
|
| 154 |
-
"date": "2023-10-01",
|
| 155 |
-
"river": "chambal",
|
| 156 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 157 |
-
"uri_to_prediction": "",
|
| 158 |
-
"uid": "6r8ypwmb"
|
| 159 |
-
},
|
| 160 |
{
|
| 161 |
"uri_to_s1": "",
|
| 162 |
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2024-02-01/S2/chambal_s2_2024-02-01.tif",
|
|
@@ -166,239 +36,8 @@ except:
|
|
| 166 |
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 167 |
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/chambal/2024-02-01/chambal_prediction_2024-02-01_6r8ypwmb.tif",
|
| 168 |
"uid": "6r8ypwmb"
|
| 169 |
-
},
|
| 170 |
-
{
|
| 171 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/parbati/2022-10-01/S1/parbati_s1_2022-10-01.tif",
|
| 172 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/parbati/2022-10-01/S2/parbati_s2_2022-10-01.tif",
|
| 173 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/parbati/2022-10-01/S2_L1C/parbati_s2l1c_2022-10-01.tif",
|
| 174 |
-
"date": "2022-10-01",
|
| 175 |
-
"river": "parbati",
|
| 176 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/parbati/parbati.geojson",
|
| 177 |
-
"uri_to_prediction": "",
|
| 178 |
-
"uid": "6r8ypwmb"
|
| 179 |
-
},
|
| 180 |
-
{
|
| 181 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/yamuna/2022-10-01/S1/yamuna_s1_2022-10-01.tif",
|
| 182 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/yamuna/2022-10-01/S2/yamuna_s2_2022-10-01.tif",
|
| 183 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/yamuna/2022-10-01/S2_L1C/yamuna_s2l1c_2022-10-01.tif",
|
| 184 |
-
"date": "2022-10-01",
|
| 185 |
-
"river": "yamuna",
|
| 186 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/yamuna/yamuna.geojson",
|
| 187 |
-
"uri_to_prediction": "",
|
| 188 |
-
"uid": "6r8ypwmb"
|
| 189 |
-
},
|
| 190 |
-
{
|
| 191 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/betwa/2022-10-01/S1/betwa_s1_2022-10-01.tif",
|
| 192 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/betwa/2022-10-01/S2/betwa_s2_2022-10-01.tif",
|
| 193 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/betwa/2022-10-01/S2_L1C/betwa_s2l1c_2022-10-01.tif",
|
| 194 |
-
"date": "2022-10-01",
|
| 195 |
-
"river": "betwa",
|
| 196 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/betwa/betwa.geojson",
|
| 197 |
-
"uri_to_prediction": "",
|
| 198 |
-
"uid": "6r8ypwmb"
|
| 199 |
-
},
|
| 200 |
-
{
|
| 201 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/ken/2022-10-01/S1/ken_s1_2022-10-01.tif",
|
| 202 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/ken/2022-10-01/S2/ken_s2_2022-10-01.tif",
|
| 203 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/ken/2022-10-01/S2_L1C/ken_s2l1c_2022-10-01.tif",
|
| 204 |
-
"date": "2022-10-01",
|
| 205 |
-
"river": "ken",
|
| 206 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/ken/ken.geojson",
|
| 207 |
-
"uri_to_prediction": "",
|
| 208 |
-
"uid": "6r8ypwmb"
|
| 209 |
-
},
|
| 210 |
-
{
|
| 211 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/narmada/2022-10-01/S1/narmada_s1_2022-10-01.tif",
|
| 212 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/narmada/2022-10-01/S2/narmada_s2_2022-10-01.tif",
|
| 213 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/narmada/2022-10-01/S2_L1C/narmada_s2l1c_2022-10-01.tif",
|
| 214 |
-
"date": "2022-10-01",
|
| 215 |
-
"river": "narmada",
|
| 216 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/narmada/narmada.geojson",
|
| 217 |
-
"uri_to_prediction": "",
|
| 218 |
-
"uid": "6r8ypwmb"
|
| 219 |
-
},
|
| 220 |
-
{
|
| 221 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/wainganga/2022-10-01/S1/wainganga_s1_2022-10-01.tif",
|
| 222 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/wainganga/2022-10-01/S2/wainganga_s2_2022-10-01.tif",
|
| 223 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/wainganga/2022-10-01/S2_L1C/wainganga_s2l1c_2022-10-01.tif",
|
| 224 |
-
"date": "2022-10-01",
|
| 225 |
-
"river": "wainganga",
|
| 226 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/wainganga/wainganga.geojson",
|
| 227 |
-
"uri_to_prediction": "",
|
| 228 |
-
"uid": "6r8ypwmb"
|
| 229 |
-
},
|
| 230 |
-
{
|
| 231 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/kanhan/2022-10-01/S1/kanhan_s1_2022-10-01.tif",
|
| 232 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/kanhan/2022-10-01/S2/kanhan_s2_2022-10-01.tif",
|
| 233 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/kanhan/2022-10-01/S2_L1C/kanhan_s2l1c_2022-10-01.tif",
|
| 234 |
-
"date": "2022-10-01",
|
| 235 |
-
"river": "kanhan",
|
| 236 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/kanhan/kanhan.geojson",
|
| 237 |
-
"uri_to_prediction": "",
|
| 238 |
-
"uid": "6r8ypwmb"
|
| 239 |
-
},
|
| 240 |
-
{
|
| 241 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/orsang/2022-10-01/S1/orsang_s1_2022-10-01.tif",
|
| 242 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/orsang/2022-10-01/S2/orsang_s2_2022-10-01.tif",
|
| 243 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/orsang/2022-10-01/S2_L1C/orsang_s2l1c_2022-10-01.tif",
|
| 244 |
-
"date": "2022-10-01",
|
| 245 |
-
"river": "orsang",
|
| 246 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/orsang/orsang.geojson",
|
| 247 |
-
"uri_to_prediction": "",
|
| 248 |
-
"uid": "6r8ypwmb"
|
| 249 |
-
},
|
| 250 |
-
{
|
| 251 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/sukhi/2022-10-01/S1/sukhi_s1_2022-10-01.tif",
|
| 252 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/sukhi/2022-10-01/S2/sukhi_s2_2022-10-01.tif",
|
| 253 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/sukhi/2022-10-01/S2_L1C/sukhi_s2l1c_2022-10-01.tif",
|
| 254 |
-
"date": "2022-10-01",
|
| 255 |
-
"river": "sukhi",
|
| 256 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/sukhi/sukhi.geojson",
|
| 257 |
-
"uri_to_prediction": "",
|
| 258 |
-
"uid": "6r8ypwmb"
|
| 259 |
-
},
|
| 260 |
-
{
|
| 261 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/banas/2022-10-01/S1/banas_s1_2022-10-01.tif",
|
| 262 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/banas/2022-10-01/S2/banas_s2_2022-10-01.tif",
|
| 263 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/banas/2022-10-01/S2_L1C/banas_s2l1c_2022-10-01.tif",
|
| 264 |
-
"date": "2022-10-01",
|
| 265 |
-
"river": "banas",
|
| 266 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/banas/banas.geojson",
|
| 267 |
-
"uri_to_prediction": "",
|
| 268 |
-
"uid": "6r8ypwmb"
|
| 269 |
-
},
|
| 270 |
-
{
|
| 271 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/sutlej/2022-10-01/S1/sutlej_s1_2022-10-01.tif",
|
| 272 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/sutlej/2022-10-01/S2/sutlej_s2_2022-10-01.tif",
|
| 273 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/sutlej/2022-10-01/S2_L1C/sutlej_s2l1c_2022-10-01.tif",
|
| 274 |
-
"date": "2022-10-01",
|
| 275 |
-
"river": "sutlej",
|
| 276 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/sutlej/sutlej.geojson",
|
| 277 |
-
"uri_to_prediction": "",
|
| 278 |
-
"uid": "6r8ypwmb"
|
| 279 |
-
},
|
| 280 |
-
{
|
| 281 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/mahanadi/2022-10-01/S1/mahanadi_s1_2022-10-01.tif",
|
| 282 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/mahanadi/2022-10-01/S2/mahanadi_s2_2022-10-01.tif",
|
| 283 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/mahanadi/2022-10-01/S2_L1C/mahanadi_s2l1c_2022-10-01.tif",
|
| 284 |
-
"date": "2022-10-01",
|
| 285 |
-
"river": "mahanadi",
|
| 286 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/mahanadi/mahanadi.geojson",
|
| 287 |
-
"uri_to_prediction": "",
|
| 288 |
-
"uid": "6r8ypwmb"
|
| 289 |
-
},
|
| 290 |
-
{
|
| 291 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/kathajodi/2022-10-01/S1/kathajodi_s1_2022-10-01.tif",
|
| 292 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/kathajodi/2022-10-01/S2/kathajodi_s2_2022-10-01.tif",
|
| 293 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/kathajodi/2022-10-01/S2_L1C/kathajodi_s2l1c_2022-10-01.tif",
|
| 294 |
-
"date": "2022-10-01",
|
| 295 |
-
"river": "kathajodi",
|
| 296 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/kathajodi/kathajodi.geojson",
|
| 297 |
-
"uri_to_prediction": "",
|
| 298 |
-
"uid": "6r8ypwmb"
|
| 299 |
-
},
|
| 300 |
-
{
|
| 301 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/penna/2022-10-01/S1/penna_s1_2022-10-01.tif",
|
| 302 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/penna/2022-10-01/S2/penna_s2_2022-10-01.tif",
|
| 303 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/penna/2022-10-01/S2_L1C/penna_s2l1c_2022-10-01.tif",
|
| 304 |
-
"date": "2022-10-01",
|
| 305 |
-
"river": "penna",
|
| 306 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/penna/penna.geojson",
|
| 307 |
-
"uri_to_prediction": "",
|
| 308 |
-
"uid": "6r8ypwmb"
|
| 309 |
-
},
|
| 310 |
-
{
|
| 311 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/tawa/2022-10-01/S1/tawa_s1_2022-10-01.tif",
|
| 312 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/tawa/2022-10-01/S2/tawa_s2_2022-10-01.tif",
|
| 313 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/tawa/2022-10-01/S2_L1C/tawa_s2l1c_2022-10-01.tif",
|
| 314 |
-
"date": "2022-10-01",
|
| 315 |
-
"river": "tawa",
|
| 316 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/tawa/tawa.geojson",
|
| 317 |
-
"uri_to_prediction": "",
|
| 318 |
-
"uid": "6r8ypwmb"
|
| 319 |
-
},
|
| 320 |
-
{
|
| 321 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/palar/2022-10-01/S1/palar_s1_2022-10-01.tif",
|
| 322 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/palar/2022-10-01/S2/palar_s2_2022-10-01.tif",
|
| 323 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/palar/2022-10-01/S2_L1C/palar_s2l1c_2022-10-01.tif",
|
| 324 |
-
"date": "2022-10-01",
|
| 325 |
-
"river": "palar",
|
| 326 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/palar/palar.geojson",
|
| 327 |
-
"uri_to_prediction": "",
|
| 328 |
-
"uid": "6r8ypwmb"
|
| 329 |
-
},
|
| 330 |
-
{
|
| 331 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-05-01/S1/chambal_s1_2022-05-01.tif",
|
| 332 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-05-01/S2/chambal_s2_2022-05-01.tif",
|
| 333 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-05-01/S2_L1C/chambal_s2l1c_2022-05-01.tif",
|
| 334 |
-
"date": "2022-05-01",
|
| 335 |
-
"river": "chambal",
|
| 336 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 337 |
-
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-05-01/chambal_prediction_2022-05-01_6r8ypwmb.tif",
|
| 338 |
-
"uid": "6r8ypwmb"
|
| 339 |
-
},
|
| 340 |
-
{
|
| 341 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-02-01/S1/chambal_s1_2022-02-01.tif",
|
| 342 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-02-01/S2/chambal_s2_2022-02-01.tif",
|
| 343 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-02-01/S2_L1C/chambal_s2l1c_2022-02-01.tif",
|
| 344 |
-
"date": "2022-02-01",
|
| 345 |
-
"river": "chambal",
|
| 346 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 347 |
-
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/chambal/2022-02-01/chambal_prediction_2022-02-01_6r8ypwmb.tif",
|
| 348 |
-
"uid": "6r8ypwmb"
|
| 349 |
-
},
|
| 350 |
-
{
|
| 351 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/sone/2023-12-01/S1/sone_s1_2023-12-01.tif",
|
| 352 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/sone/2023-12-01/S2/sone_s2_2023-12-01.tif",
|
| 353 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/sone/2023-12-01/S2_L1C/sone_s2l1c_2023-12-01.tif",
|
| 354 |
-
"date": "2023-12-01",
|
| 355 |
-
"river": "sone",
|
| 356 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/sone/sone.geojson",
|
| 357 |
-
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/sone/2023-12-01/sone_prediction_2023-12-01_6r8ypwmb.tif",
|
| 358 |
-
"uid": "6r8ypwmb"
|
| 359 |
-
},
|
| 360 |
-
{
|
| 361 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/ken/2023-12-01/S1/ken_s1_2023-12-01.tif",
|
| 362 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/ken/2023-12-01/S2/ken_s2_2023-12-01.tif",
|
| 363 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/ken/2023-12-01/S2_L1C/ken_s2l1c_2023-12-01.tif",
|
| 364 |
-
"date": "2023-12-01",
|
| 365 |
-
"river": "ken",
|
| 366 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/ken/ken.geojson",
|
| 367 |
-
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/ken/2023-12-01/ken_prediction_2023-12-01_6r8ypwmb.tif",
|
| 368 |
-
"uid": "6r8ypwmb"
|
| 369 |
-
},
|
| 370 |
-
{
|
| 371 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/narmada/2023-12-01/S1/narmada_s1_2023-12-01.tif",
|
| 372 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/narmada/2023-12-01/S2/narmada_s2_2023-12-01.tif",
|
| 373 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/narmada/2023-12-01/S2_L1C/narmada_s2l1c_2023-12-01.tif",
|
| 374 |
-
"date": "2023-12-01",
|
| 375 |
-
"river": "narmada",
|
| 376 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/narmada/narmada.geojson",
|
| 377 |
-
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/narmada/2023-12-01/narmada_prediction_2023-12-01_6r8ypwmb.tif",
|
| 378 |
-
"uid": "6r8ypwmb"
|
| 379 |
-
},
|
| 380 |
-
{
|
| 381 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/ken/2024-01-01/S1/ken_s1_2024-01-01.tif",
|
| 382 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/ken/2024-01-01/S2/ken_s2_2024-01-01.tif",
|
| 383 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/ken/2024-01-01/S2_L1C/ken_s2l1c_2024-01-01.tif",
|
| 384 |
-
"date": "2024-01-01",
|
| 385 |
-
"river": "ken",
|
| 386 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/ken/ken.geojson",
|
| 387 |
-
"uri_to_prediction": "",
|
| 388 |
-
"uid": "6r8ypwmb"
|
| 389 |
-
},
|
| 390 |
-
{
|
| 391 |
-
"uri_to_s1": "https://storage.googleapis.com/sand_mining_inference/sone/2024-01-01/S1/sone_s1_2024-01-01.tif",
|
| 392 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/sone/2024-01-01/S2/sone_s2_2024-01-01.tif",
|
| 393 |
-
"uri_to_s2_l1c": "https://storage.googleapis.com/sand_mining_inference/sone/2024-01-01/S2_L1C/sone_s2l1c_2024-01-01.tif",
|
| 394 |
-
"date": "2024-01-01",
|
| 395 |
-
"river": "sone",
|
| 396 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/sone/sone.geojson",
|
| 397 |
-
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/sone/2024-01-01/sone_prediction_2024-01-01_6r8ypwmb.tif",
|
| 398 |
-
"uid": "6r8ypwmb"
|
| 399 |
}
|
| 400 |
-
|
| 401 |
-
]
|
| 402 |
|
| 403 |
locations = {}
|
| 404 |
|
|
@@ -430,7 +69,7 @@ zoom = solara.reactive(10)
|
|
| 430 |
center = solara.reactive([40, -100])
|
| 431 |
|
| 432 |
wandb_id = '6r8ypwmb'
|
| 433 |
-
threshold = 0.
|
| 434 |
|
| 435 |
# Generate a magma colormap
|
| 436 |
magma = cm.get_cmap('magma_r', 256)
|
|
@@ -487,7 +126,7 @@ class Map(geemap.Map):
|
|
| 487 |
|
| 488 |
return s2_path, prediction_path, river, date
|
| 489 |
|
| 490 |
-
def add_prediction(self, id, center=
|
| 491 |
s2_path, prediction_path, river, date = self.parse_id(id)
|
| 492 |
|
| 493 |
# display(river, date, "\n")
|
|
@@ -531,7 +170,8 @@ class Map(geemap.Map):
|
|
| 531 |
|
| 532 |
#center the map on the image
|
| 533 |
if center:
|
| 534 |
-
self.centerObject(prediction, int(zoom.value))
|
|
|
|
| 535 |
|
| 536 |
@solara.component
|
| 537 |
def Page():
|
|
|
|
| 27 |
except:
|
| 28 |
dataset = [
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
{
|
| 31 |
"uri_to_s1": "",
|
| 32 |
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2024-02-01/S2/chambal_s2_2024-02-01.tif",
|
|
|
|
| 36 |
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 37 |
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/chambal/2024-02-01/chambal_prediction_2024-02-01_6r8ypwmb.tif",
|
| 38 |
"uid": "6r8ypwmb"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
}
|
| 40 |
+
]
|
|
|
|
| 41 |
|
| 42 |
locations = {}
|
| 43 |
|
|
|
|
| 69 |
center = solara.reactive([40, -100])
|
| 70 |
|
| 71 |
wandb_id = '6r8ypwmb'
|
| 72 |
+
threshold = 0.1
|
| 73 |
|
| 74 |
# Generate a magma colormap
|
| 75 |
magma = cm.get_cmap('magma_r', 256)
|
|
|
|
| 126 |
|
| 127 |
return s2_path, prediction_path, river, date
|
| 128 |
|
| 129 |
+
def add_prediction(self, id, center=True):
|
| 130 |
s2_path, prediction_path, river, date = self.parse_id(id)
|
| 131 |
|
| 132 |
# display(river, date, "\n")
|
|
|
|
| 170 |
|
| 171 |
#center the map on the image
|
| 172 |
if center:
|
| 173 |
+
# self.centerObject(prediction, int(zoom.value))
|
| 174 |
+
self.centerObject(prediction, 7)
|
| 175 |
|
| 176 |
@solara.component
|
| 177 |
def Page():
|
public/river_oos_dataset_v0.2_20240210.json
CHANGED
|
@@ -99,16 +99,6 @@
|
|
| 99 |
"uri_to_prediction": "",
|
| 100 |
"uid": "6r8ypwmb"
|
| 101 |
},
|
| 102 |
-
{
|
| 103 |
-
"uri_to_s1": "",
|
| 104 |
-
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2023-12-01/S2/chambal_s2_2023-12-01.tif",
|
| 105 |
-
"uri_to_s2_l1c": "",
|
| 106 |
-
"date": "2023-12-01",
|
| 107 |
-
"river": "chambal",
|
| 108 |
-
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 109 |
-
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal_prediction_2023-12-01_6r8ypwmb.tif",
|
| 110 |
-
"uid": "6r8ypwmb"
|
| 111 |
-
},
|
| 112 |
{
|
| 113 |
"uri_to_s1": "",
|
| 114 |
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2023-11-01/S2/chambal_s2_2023-11-01.tif",
|
|
@@ -358,5 +348,25 @@
|
|
| 358 |
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/sone/sone.geojson",
|
| 359 |
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/sone/2024-01-01/sone_prediction_2024-01-01_6r8ypwmb.tif",
|
| 360 |
"uid": "6r8ypwmb"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 361 |
}
|
| 362 |
]
|
|
|
|
| 99 |
"uri_to_prediction": "",
|
| 100 |
"uid": "6r8ypwmb"
|
| 101 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
{
|
| 103 |
"uri_to_s1": "",
|
| 104 |
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2023-11-01/S2/chambal_s2_2023-11-01.tif",
|
|
|
|
| 348 |
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/sone/sone.geojson",
|
| 349 |
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/sone/2024-01-01/sone_prediction_2024-01-01_6r8ypwmb.tif",
|
| 350 |
"uid": "6r8ypwmb"
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"uri_to_s1": "",
|
| 354 |
+
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/chambal/2024-02-01/S2/chambal_s2_2024-02-01.tif",
|
| 355 |
+
"uri_to_s2_l1c": "",
|
| 356 |
+
"date": "2024-02-01",
|
| 357 |
+
"river": "chambal",
|
| 358 |
+
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/chambal/chambal.geojson",
|
| 359 |
+
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/chambal/2024-02-01/chambal_prediction_2024-02-01_6r8ypwmb.tif",
|
| 360 |
+
"uid": "6r8ypwmb"
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"uri_to_s1": "",
|
| 364 |
+
"uri_to_s2": "https://storage.googleapis.com/sand_mining_inference/yamuna/2024-02-01/S2/yamuna_s2_2024-02-01.tif",
|
| 365 |
+
"uri_to_s2_l1c": "",
|
| 366 |
+
"date": "2024-02-01",
|
| 367 |
+
"river": "yamuna",
|
| 368 |
+
"uri_to_river": "https://storage.googleapis.com/sand_mining_inference/yamuna/yamuna.geojson",
|
| 369 |
+
"uri_to_prediction": "https://storage.googleapis.com/sand_mining_inference/yamuna/2024-02-01/yamuna_prediction_2024-02-01_6r8ypwmb.tif",
|
| 370 |
+
"uid": "6r8ypwmb"
|
| 371 |
}
|
| 372 |
]
|