giswqs commited on
Commit
f37a8ac
·
1 Parent(s): 64189ed

Add data repository

Browse files
pages/00_home.py CHANGED
@@ -14,6 +14,7 @@ def Page():
14
  - Web App: <https://giswqs-solara-maxar.hf.space>
15
  - GitHub: <https://github.com/opengeos/solara-maxar>
16
  - Hugging Face: <https://huggingface.co/spaces/giswqs/solara-maxar>
 
17
 
18
  """
19
 
 
14
  - Web App: <https://giswqs-solara-maxar.hf.space>
15
  - GitHub: <https://github.com/opengeos/solara-maxar>
16
  - Hugging Face: <https://huggingface.co/spaces/giswqs/solara-maxar>
17
+ - Data Repository: <https://github.com/opengeos/maxar-open-data>
18
 
19
  """
20
 
pages/01_morocco.py CHANGED
@@ -104,7 +104,7 @@ def add_widgets(m):
104
  reset.value = False
105
  date_picker.value = pd.to_datetime("2021-01-01").date()
106
  m.remove_layer(m.find_layer("Footprint"))
107
- m.controls = m.controls[:-1]
108
  m.add_gdf(
109
  m.footprint,
110
  layer_name="Footprint",
@@ -120,7 +120,7 @@ def add_widgets(m):
120
  def change_dataset(change):
121
  default_geojson = f"{url}/datasets/{change.new}_union.geojson"
122
  m.layers = m.layers[:2]
123
- m.controls = m.controls[:-1]
124
  basename = os.path.basename(default_geojson)
125
  tempdir = tempfile.gettempdir()
126
  tmp_geojson = os.path.join(tempdir, basename)
@@ -142,7 +142,7 @@ def add_widgets(m):
142
  sub_catalog_ids = sub_gdf["catalog_id"].values.tolist()
143
  image.options = sub_catalog_ids
144
  m.remove_layer(m.find_layer("Footprint"))
145
- m.controls = m.controls[:-1]
146
  m.add_gdf(
147
  sub_gdf,
148
  layer_name="Footprint",
 
104
  reset.value = False
105
  date_picker.value = pd.to_datetime("2021-01-01").date()
106
  m.remove_layer(m.find_layer("Footprint"))
107
+
108
  m.add_gdf(
109
  m.footprint,
110
  layer_name="Footprint",
 
120
  def change_dataset(change):
121
  default_geojson = f"{url}/datasets/{change.new}_union.geojson"
122
  m.layers = m.layers[:2]
123
+
124
  basename = os.path.basename(default_geojson)
125
  tempdir = tempfile.gettempdir()
126
  tmp_geojson = os.path.join(tempdir, basename)
 
142
  sub_catalog_ids = sub_gdf["catalog_id"].values.tolist()
143
  image.options = sub_catalog_ids
144
  m.remove_layer(m.find_layer("Footprint"))
145
+
146
  m.add_gdf(
147
  sub_gdf,
148
  layer_name="Footprint",
pages/02_libya.py CHANGED
@@ -104,7 +104,7 @@ def add_widgets(m):
104
  reset.value = False
105
  date_picker.value = pd.to_datetime("2021-01-01").date()
106
  m.remove_layer(m.find_layer("Footprint"))
107
- m.controls = m.controls[:-1]
108
  m.add_gdf(
109
  m.footprint,
110
  layer_name="Footprint",
@@ -120,7 +120,7 @@ def add_widgets(m):
120
  def change_dataset(change):
121
  default_geojson = f"{url}/datasets/{change.new}_union.geojson"
122
  m.layers = m.layers[:2]
123
- m.controls = m.controls[:-1]
124
  basename = os.path.basename(default_geojson)
125
  tempdir = tempfile.gettempdir()
126
  tmp_geojson = os.path.join(tempdir, basename)
@@ -142,7 +142,7 @@ def add_widgets(m):
142
  sub_catalog_ids = sub_gdf["catalog_id"].values.tolist()
143
  image.options = sub_catalog_ids
144
  m.remove_layer(m.find_layer("Footprint"))
145
- m.controls = m.controls[:-1]
146
  m.add_gdf(
147
  sub_gdf,
148
  layer_name="Footprint",
 
104
  reset.value = False
105
  date_picker.value = pd.to_datetime("2021-01-01").date()
106
  m.remove_layer(m.find_layer("Footprint"))
107
+
108
  m.add_gdf(
109
  m.footprint,
110
  layer_name="Footprint",
 
120
  def change_dataset(change):
121
  default_geojson = f"{url}/datasets/{change.new}_union.geojson"
122
  m.layers = m.layers[:2]
123
+
124
  basename = os.path.basename(default_geojson)
125
  tempdir = tempfile.gettempdir()
126
  tmp_geojson = os.path.join(tempdir, basename)
 
142
  sub_catalog_ids = sub_gdf["catalog_id"].values.tolist()
143
  image.options = sub_catalog_ids
144
  m.remove_layer(m.find_layer("Footprint"))
145
+
146
  m.add_gdf(
147
  sub_gdf,
148
  layer_name="Footprint",
pages/03_maui.py CHANGED
@@ -104,7 +104,7 @@ def add_widgets(m):
104
  reset.value = False
105
  date_picker.value = pd.to_datetime("2021-01-01").date()
106
  m.remove_layer(m.find_layer("Footprint"))
107
- m.controls = m.controls[:-1]
108
  m.add_gdf(
109
  m.footprint,
110
  layer_name="Footprint",
@@ -120,7 +120,7 @@ def add_widgets(m):
120
  def change_dataset(change):
121
  default_geojson = f"{url}/datasets/{change.new}_union.geojson"
122
  m.layers = m.layers[:2]
123
- m.controls = m.controls[:-1]
124
  basename = os.path.basename(default_geojson)
125
  tempdir = tempfile.gettempdir()
126
  tmp_geojson = os.path.join(tempdir, basename)
@@ -142,7 +142,7 @@ def add_widgets(m):
142
  sub_catalog_ids = sub_gdf["catalog_id"].values.tolist()
143
  image.options = sub_catalog_ids
144
  m.remove_layer(m.find_layer("Footprint"))
145
- m.controls = m.controls[:-1]
146
  m.add_gdf(
147
  sub_gdf,
148
  layer_name="Footprint",
 
104
  reset.value = False
105
  date_picker.value = pd.to_datetime("2021-01-01").date()
106
  m.remove_layer(m.find_layer("Footprint"))
107
+
108
  m.add_gdf(
109
  m.footprint,
110
  layer_name="Footprint",
 
120
  def change_dataset(change):
121
  default_geojson = f"{url}/datasets/{change.new}_union.geojson"
122
  m.layers = m.layers[:2]
123
+
124
  basename = os.path.basename(default_geojson)
125
  tempdir = tempfile.gettempdir()
126
  tmp_geojson = os.path.join(tempdir, basename)
 
142
  sub_catalog_ids = sub_gdf["catalog_id"].values.tolist()
143
  image.options = sub_catalog_ids
144
  m.remove_layer(m.find_layer("Footprint"))
145
+
146
  m.add_gdf(
147
  sub_gdf,
148
  layer_name="Footprint",
pages/04_helen.py CHANGED
@@ -104,7 +104,7 @@ def add_widgets(m):
104
  reset.value = False
105
  date_picker.value = pd.to_datetime("2021-01-01").date()
106
  m.remove_layer(m.find_layer("Footprint"))
107
- m.controls = m.controls[:-1]
108
  m.add_gdf(
109
  m.footprint,
110
  layer_name="Footprint",
@@ -120,7 +120,7 @@ def add_widgets(m):
120
  def change_dataset(change):
121
  default_geojson = f"{url}/datasets/{change.new}_union.geojson"
122
  m.layers = m.layers[:2]
123
- m.controls = m.controls[:-1]
124
  basename = os.path.basename(default_geojson)
125
  tempdir = tempfile.gettempdir()
126
  tmp_geojson = os.path.join(tempdir, basename)
@@ -142,7 +142,7 @@ def add_widgets(m):
142
  sub_catalog_ids = sub_gdf["catalog_id"].values.tolist()
143
  image.options = sub_catalog_ids
144
  m.remove_layer(m.find_layer("Footprint"))
145
- m.controls = m.controls[:-1]
146
  m.add_gdf(
147
  sub_gdf,
148
  layer_name="Footprint",
 
104
  reset.value = False
105
  date_picker.value = pd.to_datetime("2021-01-01").date()
106
  m.remove_layer(m.find_layer("Footprint"))
107
+
108
  m.add_gdf(
109
  m.footprint,
110
  layer_name="Footprint",
 
120
  def change_dataset(change):
121
  default_geojson = f"{url}/datasets/{change.new}_union.geojson"
122
  m.layers = m.layers[:2]
123
+
124
  basename = os.path.basename(default_geojson)
125
  tempdir = tempfile.gettempdir()
126
  tmp_geojson = os.path.join(tempdir, basename)
 
142
  sub_catalog_ids = sub_gdf["catalog_id"].values.tolist()
143
  image.options = sub_catalog_ids
144
  m.remove_layer(m.find_layer("Footprint"))
145
+
146
  m.add_gdf(
147
  sub_gdf,
148
  layer_name="Footprint",
pages/05_milton.py CHANGED
@@ -104,7 +104,7 @@ def add_widgets(m):
104
  reset.value = False
105
  date_picker.value = pd.to_datetime("2021-01-01").date()
106
  m.remove_layer(m.find_layer("Footprint"))
107
- m.controls = m.controls[:-1]
108
  m.add_gdf(
109
  m.footprint,
110
  layer_name="Footprint",
@@ -120,7 +120,7 @@ def add_widgets(m):
120
  def change_dataset(change):
121
  default_geojson = f"{url}/datasets/{change.new}_union.geojson"
122
  m.layers = m.layers[:2]
123
- m.controls = m.controls[:-1]
124
  basename = os.path.basename(default_geojson)
125
  tempdir = tempfile.gettempdir()
126
  tmp_geojson = os.path.join(tempdir, basename)
@@ -142,8 +142,7 @@ def add_widgets(m):
142
  sub_catalog_ids = sub_gdf["catalog_id"].values.tolist()
143
  image.options = sub_catalog_ids
144
  m.remove_layer(m.find_layer("Footprint"))
145
- m.controls = m.controls[:-1]
146
- m.controls = m.controls[:-1]
147
  m.add_gdf(
148
  sub_gdf,
149
  layer_name="Footprint",
 
104
  reset.value = False
105
  date_picker.value = pd.to_datetime("2021-01-01").date()
106
  m.remove_layer(m.find_layer("Footprint"))
107
+
108
  m.add_gdf(
109
  m.footprint,
110
  layer_name="Footprint",
 
120
  def change_dataset(change):
121
  default_geojson = f"{url}/datasets/{change.new}_union.geojson"
122
  m.layers = m.layers[:2]
123
+
124
  basename = os.path.basename(default_geojson)
125
  tempdir = tempfile.gettempdir()
126
  tmp_geojson = os.path.join(tempdir, basename)
 
142
  sub_catalog_ids = sub_gdf["catalog_id"].values.tolist()
143
  image.options = sub_catalog_ids
144
  m.remove_layer(m.find_layer("Footprint"))
145
+
 
146
  m.add_gdf(
147
  sub_gdf,
148
  layer_name="Footprint",