Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0721711

Browse files
committed
minor updates for latest v4.3.2 build
1 parent 323d333 commit 0721711

12 files changed

+125
-44
lines changed

examples/api_widgets_demo.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
},
2626
"outputs": [],
2727
"source": [
28+
"import warnings\n",
29+
"warnings.filterwarnings('ignore') # turn off warnings for demo\n",
30+
"\n",
2831
"from sliderule import icesat2, ipysliderule, io, sliderule\n",
2932
"import ipywidgets as widgets\n",
3033
"import geopandas\n",
3134
"import logging\n",
32-
"import warnings\n",
33-
"# autoreload\n",
35+
"\n",
3436
"%load_ext autoreload\n",
35-
"%autoreload 2\n",
36-
"# turn off warnings for demo\n",
37-
"warnings.filterwarnings('ignore')"
37+
"%autoreload 2"
3838
]
3939
},
4040
{

examples/arcticdem_mosaic.ipynb

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,20 @@
2222
{
2323
"cell_type": "code",
2424
"execution_count": null,
25-
"id": "9dada6f9-e621-4a3a-825b-065ef6846645",
25+
"id": "d58f8efa-e074-4baf-9bdf-51d819082844",
26+
"metadata": {
27+
"tags": []
28+
},
29+
"outputs": [],
30+
"source": [
31+
"import warnings\n",
32+
"warnings.filterwarnings(\"ignore\") # suppress warnings"
33+
]
34+
},
35+
{
36+
"cell_type": "code",
37+
"execution_count": null,
38+
"id": "fc573692-19b2-41d2-9575-9b42d1ea1031",
2639
"metadata": {
2740
"tags": []
2841
},
@@ -305,7 +318,7 @@
305318
"name": "python",
306319
"nbconvert_exporter": "python",
307320
"pygments_lexer": "ipython3",
308-
"version": "3.11.3"
321+
"version": "3.12.0"
309322
}
310323
},
311324
"nbformat": 4,

examples/arcticdem_strip_boundaries.ipynb

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,20 @@
2626
{
2727
"cell_type": "code",
2828
"execution_count": null,
29-
"id": "b3173c74-9574-4780-9d61-1f63a2787555",
29+
"id": "9af774d2-b404-4c52-b932-83992803675f",
30+
"metadata": {
31+
"tags": []
32+
},
33+
"outputs": [],
34+
"source": [
35+
"import warnings\n",
36+
"warnings.filterwarnings(\"ignore\") # suppress warnings"
37+
]
38+
},
39+
{
40+
"cell_type": "code",
41+
"execution_count": null,
42+
"id": "d7be24a2-d09a-4ed3-8252-e010bd5be5b9",
3043
"metadata": {
3144
"tags": []
3245
},
@@ -368,6 +381,14 @@
368381
"# Show Plot\n",
369382
"plt.show()"
370383
]
384+
},
385+
{
386+
"cell_type": "code",
387+
"execution_count": null,
388+
"id": "5270acb7-a1f8-4fce-bd16-91c2c055816a",
389+
"metadata": {},
390+
"outputs": [],
391+
"source": []
371392
}
372393
],
373394
"metadata": {
@@ -386,7 +407,7 @@
386407
"name": "python",
387408
"nbconvert_exporter": "python",
388409
"pygments_lexer": "ipython3",
389-
"version": "3.11.3"
410+
"version": "3.12.0"
390411
}
391412
},
392413
"nbformat": 4,

examples/atl03_widgets_demo.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,17 @@
3535
},
3636
"outputs": [],
3737
"source": [
38+
"import warnings\n",
39+
"# turn off warnings for demo\n",
40+
"warnings.filterwarnings('ignore')# autoreload\n",
41+
"\n",
3842
"from sliderule import icesat2, ipysliderule, sliderule, io, earthdata\n",
3943
"import ipywidgets as widgets\n",
4044
"import geopandas\n",
4145
"import logging\n",
42-
"import warnings\n",
43-
"# autoreload\n",
46+
"\n",
4447
"%load_ext autoreload\n",
45-
"%autoreload 2\n",
46-
"# turn off warnings for demo\n",
47-
"warnings.filterwarnings('ignore')"
48+
"%autoreload 2"
4849
]
4950
},
5051
{
@@ -66,7 +67,6 @@
6667
"source": [
6768
"# set the url for the sliderule service\n",
6869
"# set the logging level\n",
69-
"logging.basicConfig(level=logging.WARNING)\n",
7070
"icesat2.init(\"slideruleearth.io\", loglevel=logging.WARNING)"
7171
]
7272
},
@@ -525,7 +525,7 @@
525525
"name": "python",
526526
"nbconvert_exporter": "python",
527527
"pygments_lexer": "ipython3",
528-
"version": "3.11.3"
528+
"version": "3.12.0"
529529
}
530530
},
531531
"nbformat": 4,

examples/boulder_watershed_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"name": "python",
169169
"nbconvert_exporter": "python",
170170
"pygments_lexer": "ipython3",
171-
"version": "3.11.3"
171+
"version": "3.12.0"
172172
}
173173
},
174174
"nbformat": 4,

examples/cmr_debug_regions.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@
4747
"import sliderule.io\n",
4848
"# autoreload\n",
4949
"%load_ext autoreload\n",
50-
"%autoreload 2\n",
51-
"# create logger\n",
52-
"logging.basicConfig(level=logging.INFO)"
50+
"%autoreload 2"
5351
]
5452
},
5553
{
@@ -386,7 +384,7 @@
386384
"name": "python",
387385
"nbconvert_exporter": "python",
388386
"pygments_lexer": "ipython3",
389-
"version": "3.11.3"
387+
"version": "3.12.0"
390388
}
391389
},
392390
"nbformat": 4,

examples/gedi_l1b.ipynb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@
113113
"ax[1].set_aspect('equal')\n",
114114
"gedi01b.plot(ax=ax[1], column='elevation_stop', cmap='inferno', s=0.1)"
115115
]
116+
},
117+
{
118+
"cell_type": "code",
119+
"execution_count": null,
120+
"id": "fb72876c-0512-4bcd-9a7c-1876bf23870d",
121+
"metadata": {},
122+
"outputs": [],
123+
"source": []
116124
}
117125
],
118126
"metadata": {

examples/gedi_l2a_access.ipynb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"# Imports\n",
1111
"import logging\n",
1212
"import matplotlib.pyplot as plt\n",
13-
"from sliderule import gedi\n",
1413
"from sliderule import sliderule, gedi, earthdata"
1514
]
1615
},
@@ -22,8 +21,8 @@
2221
"outputs": [],
2322
"source": [
2423
"# Configuration\n",
25-
"verbose = False\n",
26-
"loglevel = logging.CRITICAL"
24+
"verbose = True\n",
25+
"loglevel = logging.INFO"
2726
]
2827
},
2928
{
@@ -144,6 +143,14 @@
144143
"sc2 = ax.scatter(gdf.index.values, gdf[\"3dep.value\"].values, c='red', s=2.5)\n",
145144
"plt.show()"
146145
]
146+
},
147+
{
148+
"cell_type": "code",
149+
"execution_count": null,
150+
"id": "616cf11c-72da-4949-b5d0-6c358fff5e8d",
151+
"metadata": {},
152+
"outputs": [],
153+
"source": []
147154
}
148155
],
149156
"metadata": {

examples/grand_mesa_atl03_classification.ipynb

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,20 @@
2222
{
2323
"cell_type": "code",
2424
"execution_count": null,
25-
"id": "6ef0bca8",
25+
"id": "fb9beaf5-794d-457e-8911-f65158139634",
26+
"metadata": {
27+
"tags": []
28+
},
29+
"outputs": [],
30+
"source": [
31+
"import warnings\n",
32+
"warnings.filterwarnings(\"ignore\") # suppress warnings"
33+
]
34+
},
35+
{
36+
"cell_type": "code",
37+
"execution_count": null,
38+
"id": "54813d4f-f6bd-4fe0-b252-320a1e6804c0",
2639
"metadata": {
2740
"tags": []
2841
},
@@ -42,8 +55,7 @@
4255
},
4356
"outputs": [],
4457
"source": [
45-
"url = \"slideruleearth.io\"\n",
46-
"icesat2.init(url, verbose=False)"
58+
"icesat2.init(\"slideruleearth.io\", verbose=False)"
4759
]
4860
},
4961
{
@@ -86,6 +98,7 @@
8698
" # processing parameters\n",
8799
" \"srt\": icesat2.SRT_LAND,\n",
88100
" \"len\": 20,\n",
101+
" \"res\": 20,\n",
89102
" # classification and checks\n",
90103
" # still return photon segments that fail checks\n",
91104
" \"pass_invalid\": True, \n",
@@ -98,7 +111,7 @@
98111
"}\n",
99112
"\n",
100113
"# ICESat-2 data release\n",
101-
"release = '005'\n",
114+
"release = '006'\n",
102115
"# region of interest\n",
103116
"poly = [{'lat': 39.34603060272382, 'lon': -108.40601489205419},\n",
104117
" {'lat': 39.32770853617356, 'lon': -107.68485163209928},\n",

examples/grand_mesa_demo.ipynb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@
188188
"cell_type": "code",
189189
"execution_count": null,
190190
"metadata": {
191-
"scrolled": true,
192191
"tags": []
193192
},
194193
"outputs": [],
@@ -562,6 +561,13 @@
562561
" ax.set_aspect('equal');\n",
563562
" ax.set_facecolor('lightgray')"
564563
]
564+
},
565+
{
566+
"cell_type": "code",
567+
"execution_count": null,
568+
"metadata": {},
569+
"outputs": [],
570+
"source": []
565571
}
566572
],
567573
"metadata": {

0 commit comments

Comments
 (0)