Skip to content

Commit 56bd4e0

Browse files
authored
Merge pull request #110 from ICESat2-SlideRule/imageservice
add imageservice layer for ArcticDEM and REMA
2 parents 7be27b6 + b152a74 commit 56bd4e0

File tree

3 files changed

+245
-74
lines changed

3 files changed

+245
-74
lines changed

examples/api_widgets_demo.ipynb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"source": [
119119
"### Interactive Mapping with Leaflet\n",
120120
"\n",
121-
"Interactive maps within the SlideRule python API are build upon [ipyleaflet](https://ipyleaflet.readthedocs.io).\n",
121+
"Interactive maps within the SlideRule python API are built upon [ipyleaflet](https://ipyleaflet.readthedocs.io).\n",
122122
"\n",
123123
"#### Leaflet Basemaps and Layers\n",
124124
"\n",
@@ -138,6 +138,7 @@
138138
" <li><a href=\"https://asterweb.jpl.nasa.gov/gdem.asp\">ASTER GDEM Hillshade</a></li>\n",
139139
" <li><a href=\"https://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9\">ESRI Imagery</a></li>\n",
140140
" <li><a href=\"http://glims.colorado.edu/glacierdata/\">Global Land Ice Measurements from Space (GLIMS)</a></li>\n",
141+
" <li><a href=\"https://www.glims.org/RGI/\">Randolph Glacier Inventory (RGI)</a></li>\n",
141142
" </ul>\n",
142143
" </td>\n",
143144
" <td align='left' valign='top' width=\"30%\">\n",
@@ -151,6 +152,7 @@
151152
" <li><a href=\"https://lima.usgs.gov/\">Landsat Image Mosaic of Antarctica (LIMA)</a></li>\n",
152153
" <li><a href=\"https://nsidc.org/data/nsidc-0280\">MODIS Mosaic of Antarctica (MOA)</a></li>\n",
153154
" <li><a href=\"https://nsidc.org/data/NSIDC-0103\">Radarsat Antarctic Mapping Project (RAMP)</a></li>\n",
155+
" <li><a href=\"https://www.pgc.umn.edu/data/rema\">Reference Elevation Model of Antarctica (REMA)</a></li>\n",
154156
" </ul>\n",
155157
" </td>\n",
156158
" </tr>\n",
@@ -168,7 +170,8 @@
168170
"source": [
169171
"widgets.VBox([\n",
170172
" SRwidgets.projection,\n",
171-
" SRwidgets.layers\n",
173+
" SRwidgets.layers,\n",
174+
" SRwidgets.raster_functions\n",
172175
"])"
173176
]
174177
},
@@ -201,7 +204,10 @@
201204
"metadata": {},
202205
"outputs": [],
203206
"source": [
204-
"m.add_layer(layers=SRwidgets.layers.value)"
207+
"m.add_layer(\n",
208+
" layers=SRwidgets.layers.value,\n",
209+
" rendering_rule=SRwidgets.rendering_rule\n",
210+
")"
205211
]
206212
},
207213
{

examples/atl03_widgets_demo.ipynb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"source": [
109109
"### Interactive Mapping with Leaflet\n",
110110
"\n",
111-
"Interactive maps within the SlideRule python API are build upon [ipyleaflet](https://ipyleaflet.readthedocs.io).\n",
111+
"Interactive maps within the SlideRule python API are built upon [ipyleaflet](https://ipyleaflet.readthedocs.io).\n",
112112
"\n",
113113
"#### Leaflet Basemaps and Layers\n",
114114
"\n",
@@ -128,6 +128,7 @@
128128
" <li><a href=\"https://asterweb.jpl.nasa.gov/gdem.asp\">ASTER GDEM Hillshade</a></li>\n",
129129
" <li><a href=\"https://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9\">ESRI Imagery</a></li>\n",
130130
" <li><a href=\"http://glims.colorado.edu/glacierdata/\">Global Land Ice Measurements from Space (GLIMS)</a></li>\n",
131+
" <li><a href=\"https://www.glims.org/RGI/\">Randolph Glacier Inventory (RGI)</a></li>\n",
131132
" </ul>\n",
132133
" </td>\n",
133134
" <td align='left' valign='top' width=\"30%\">\n",
@@ -141,6 +142,7 @@
141142
" <li><a href=\"https://lima.usgs.gov/\">Landsat Image Mosaic of Antarctica (LIMA)</a></li>\n",
142143
" <li><a href=\"https://nsidc.org/data/nsidc-0280\">MODIS Mosaic of Antarctica (MOA)</a></li>\n",
143144
" <li><a href=\"https://nsidc.org/data/NSIDC-0103\">Radarsat Antarctic Mapping Project (RAMP)</a></li>\n",
145+
" <li><a href=\"https://www.pgc.umn.edu/data/rema\">Reference Elevation Model of Antarctica (REMA)</a></li>\n",
144146
" </ul>\n",
145147
" </td>\n",
146148
" </tr>\n",
@@ -158,7 +160,8 @@
158160
"source": [
159161
"widgets.VBox([\n",
160162
" SRwidgets.projection,\n",
161-
" SRwidgets.layers\n",
163+
" SRwidgets.layers,\n",
164+
" SRwidgets.raster_functions\n",
162165
"])"
163166
]
164167
},
@@ -191,7 +194,10 @@
191194
"metadata": {},
192195
"outputs": [],
193196
"source": [
194-
"m.add_layer(layers=SRwidgets.layers.value)"
197+
"m.add_layer(\n",
198+
" layers=SRwidgets.layers.value,\n",
199+
" rendering_rule=SRwidgets.rendering_rule\n",
200+
")"
195201
]
196202
},
197203
{

0 commit comments

Comments
 (0)