Skip to content

Commit 476c900

Browse files
committed
manual merge from development
2 parents dac8906 + 4dae598 commit 476c900

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1262
-1527
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,5 @@ dmypy.json
131131
# User
132132
.vscode/
133133
.DS_Store
134-
.DS_Store?
134+
.DS_Store?
135+
pytrace.*

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Detailed [documentation](https://slideruleearth.io/rtd/) on installing and using
1515
conda install -c conda-forge sliderule
1616
```
1717

18-
For alternate methods to install SlideRule, including options for developers, please see the detailed [installation instructions](https://slideruleearth.io/rtd/getting_started/Install.html).
18+
For alternate methods to install SlideRule, including options for developers, please see the [installation instructions](https://slideruleearth.io/rtd/getting_started/Install.html).
1919

2020
### Dependencies
2121

@@ -33,7 +33,7 @@ Example usage:
3333
from sliderule import icesat2
3434

3535
# initialize
36-
icesat2.init("icesat2sliderule.org", verbose=True)
36+
icesat2.init("slideruleearth.io", verbose=True)
3737

3838
# region of interest
3939
region = [ {"lon":-105.82971551223244, "lat": 39.81983728534918},

RELEASE.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# the tags annotation in git.
66
#
77
VERSION=$1
8-
if [[ "$VERSION" != *"."*"."* ]]; then
8+
if [[ "$VERSION" != "v"*"."*"."* ]]; then
99
echo "Invalid version number"
1010
exit 1
1111
fi
12-
if git tag -l | grep -w v$VERSION; then
12+
if git tag -l | grep -w $VERSION; then
1313
echo "Git tag already exists"
1414
exit 1
1515
fi
@@ -24,11 +24,11 @@ rm sliderule-python-$VERSION.tar.gz 2> /dev/null
2424
#
2525
echo $VERSION > version.txt
2626
git add version.txt
27-
git commit -m "Version v$VERSION"
27+
git commit -m "Version $VERSION"
2828

2929
#
3030
# Create tag and acrhive
3131
#
32-
git tag -a v$VERSION -m "version $VERSION"
33-
git archive --format=tar.gz --prefix=sliderule-python/ v$VERSION > sliderule-python-$VERSION.tar.gz
32+
git tag -a $VERSION -m "version $VERSION"
33+
git archive --format=tar.gz --prefix=sliderule-python/ $VERSION > sliderule-python-$VERSION.tar.gz
3434

environment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ channels:
44
- conda-forge
55
dependencies:
66
- geopandas
7-
- gdal
87
- h5py
98
- ipykernel
109
- ipywidgets>=7.6,<8.0

examples/Grand_mesa_ATL03_classification.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
42-
"url = \"icesat2sliderule.org\"\n",
42+
"url = \"slideruleearth.io\"\n",
4343
"icesat2.init(url, verbose=False)\n",
4444
"asset = \"nsidc-s3\""
4545
]
@@ -274,7 +274,7 @@
274274
],
275275
"metadata": {
276276
"kernelspec": {
277-
"display_name": "Python 3",
277+
"display_name": "Python 3 (ipykernel)",
278278
"language": "python",
279279
"name": "python3"
280280
},
@@ -288,7 +288,7 @@
288288
"name": "python",
289289
"nbconvert_exporter": "python",
290290
"pygments_lexer": "ipython3",
291-
"version": "3.8.10"
291+
"version": "3.8.13"
292292
}
293293
},
294294
"nbformat": 4,

examples/api_widgets_demo.ipynb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"\n",
1111
"The SlideRule ICESat-2 plug-in is a cloud-optimized version of the [ATL06 algorithm](https://nsidc.org/sites/nsidc.org/files/technical-references/ICESat2_ATL06_ATBD_r005.pdf) that can process the lower-level [ATL03 geolocated photon height data products](https://nsidc.org/data/atl03) hosted on AWS by the NSIDC DAAC. \n",
1212
"\n",
13-
"[Documentation for using SlideRule](http://icesat2sliderule.org/rtd) is available from the [project website](http://icesat2sliderule.org) \n",
13+
"[Documentation for using SlideRule](https://slideruleearth.io/rtd) is available from the [project website](https://slideruleearth.io) \n",
1414
"\n",
1515
"### Background\n",
1616
"SlideRule creates a simplified version of the [ICESat-2 ATL06 land ice height product](https://nsidc.org/data/atl06) that can be adjusted to suit different needs. SlideRule let's you create customized ICESat-2 segment heights _directly_ from the photon height data anywhere on the globe, _on-demand_ and quickly.\n",
@@ -63,7 +63,7 @@
6363
"source": [
6464
"# set the url for the sliderule service\n",
6565
"# set the logging level\n",
66-
"icesat2.init(\"icesat2sliderule.org\", loglevel=logging.WARNING)"
66+
"icesat2.init(\"slideruleearth.io\", loglevel=logging.WARNING)"
6767
]
6868
},
6969
{
@@ -255,7 +255,7 @@
255255
"### Review GeoDataFrame output\n",
256256
"Can inspect the columns, number of returns and returns at the top of the GeoDataFrame.\n",
257257
"\n",
258-
"See the [ICESat-2 documentation](http://icesat2sliderule.org/rtd/user_guide/ICESat-2.html#elevations) for descriptions of each column"
258+
"See the [ICESat-2 documentation](https://slideruleearth.io/rtd/user_guide/ICESat-2.html#elevations) for descriptions of each column"
259259
]
260260
},
261261
{
@@ -312,6 +312,7 @@
312312
"### Create plots for a single track\n",
313313
"- cycles: Will plot all available cycles of data returned by SlideRule for a single RGT and ground track\n",
314314
"- scatter: Will plot data returned by SlideRule for a single RGT, ground track and cycle\n",
315+
"- (to select a track from the leaflet plot above, click on one of the plotted elevations and the RGT and Cycle will automatically get populated below)\n",
315316
"\n",
316317
"The cycles plots should only be used in regions with [repeat Reference Ground Track (RGT) pointing](https://icesat-2.gsfc.nasa.gov/science/specs)"
317318
]
@@ -443,14 +444,21 @@
443444
"SRwidgets.set_values(parms)\n",
444445
"m.add_region(regions)"
445446
]
447+
},
448+
{
449+
"cell_type": "code",
450+
"execution_count": null,
451+
"metadata": {},
452+
"outputs": [],
453+
"source": []
446454
}
447455
],
448456
"metadata": {
449457
"interpreter": {
450458
"hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6"
451459
},
452460
"kernelspec": {
453-
"display_name": "Python 3",
461+
"display_name": "Python 3 (ipykernel)",
454462
"language": "python",
455463
"name": "python3"
456464
},
@@ -464,7 +472,7 @@
464472
"name": "python",
465473
"nbconvert_exporter": "python",
466474
"pygments_lexer": "ipython3",
467-
"version": "3.8.10"
475+
"version": "3.8.13"
468476
}
469477
},
470478
"nbformat": 4,

examples/atl03_widgets_demo.ipynb

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"\n",
99
"SlideRule is an on-demand science data processing service that runs in on Amazon Web Services and responds to REST API calls to process and return science results. SlideRule was designed to enable researchers and other data systems to have low-latency access to custom-generated, high-level, analysis-ready data products using processing parameters supplied at the time of the request. \n",
1010
"\n",
11-
"[Documentation for using SlideRule](http://icesat2sliderule.org/rtd) is available from the [project website](http://icesat2sliderule.org) \n",
11+
"[Documentation for using SlideRule](https://slideruleearth.io/rtd) is available from the [project website](https://slideruleearth.io) \n",
1212
"\n",
1313
"### Background\n",
1414
"SlideRule can subset ATL03 geolocated photon height data _on-demand_ and calculate photon classifications to suit different needs.\n",
@@ -61,7 +61,7 @@
6161
"source": [
6262
"# set the url for the sliderule service\n",
6363
"# set the logging level\n",
64-
"icesat2.init(\"icesat2sliderule.org\", loglevel=logging.WARNING)"
64+
"icesat2.init(\"slideruleearth.io\", loglevel=logging.WARNING)"
6565
]
6666
},
6767
{
@@ -270,7 +270,7 @@
270270
"### Review GeoDataFrame output\n",
271271
"Can inspect the columns, number of returns and returns at the top of the GeoDataFrame.\n",
272272
"\n",
273-
"See the [ICESat-2 documentation](http://icesat2sliderule.org/rtd/user_guide/ICESat-2.html#elevations) for descriptions of each column"
273+
"See the [ICESat-2 documentation](https://slideruleearth.io/rtd/user_guide/ICESat-2.html#elevations) for descriptions of each column"
274274
]
275275
},
276276
{
@@ -456,14 +456,21 @@
456456
"SRwidgets.set_values(parms)\n",
457457
"m.add_region(regions)"
458458
]
459+
},
460+
{
461+
"cell_type": "code",
462+
"execution_count": null,
463+
"metadata": {},
464+
"outputs": [],
465+
"source": []
459466
}
460467
],
461468
"metadata": {
462469
"interpreter": {
463470
"hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6"
464471
},
465472
"kernelspec": {
466-
"display_name": "Python 3",
473+
"display_name": "Python 3 (ipykernel)",
467474
"language": "python",
468475
"name": "python3"
469476
},
@@ -477,7 +484,7 @@
477484
"name": "python",
478485
"nbconvert_exporter": "python",
479486
"pygments_lexer": "ipython3",
480-
"version": "3.8.10"
487+
"version": "3.8.13"
481488
}
482489
},
483490
"nbformat": 4,

examples/boulder_watershed_demo.ipynb

Lines changed: 8 additions & 33 deletions
Large diffs are not rendered by default.

examples/cmr_debug_regions.ipynb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"outputs": [],
6060
"source": [
6161
"# Configure ICESat-2 API\n",
62-
"icesat2.init(\"icesat2sliderule.org\", loglevel=logging.WARNING)\n",
62+
"icesat2.init(\"slideruleearth.io\", loglevel=logging.WARNING)\n",
6363
"icesat2.get_version()\n",
6464
"\n",
6565
"# dropdown menu for ICESat-2 product\n",
@@ -287,7 +287,7 @@
287287
"print(\"Completed in {:.3f} seconds of wall-clock time\".format(perf_duration))\n",
288288
"print(\"Reference Ground Tracks: {}\".format(gdf[\"rgt\"].unique()))\n",
289289
"print(\"Cycles: {}\".format(gdf[\"cycle\"].unique()))\n",
290-
"print(\"Received {} elevations\".format(gdf.shape[0]))"
290+
"print(\"Received {} segments\".format(gdf.shape[0]))"
291291
]
292292
},
293293
{
@@ -315,14 +315,22 @@
315315
" style={'color': 'black', 'opacity':1, 'weight':0.1})\n",
316316
"m.map.add_layer(geodata)"
317317
]
318+
},
319+
{
320+
"cell_type": "code",
321+
"execution_count": null,
322+
"metadata": {},
323+
"outputs": [],
324+
"source": []
318325
}
319326
],
320327
"metadata": {
321328
"interpreter": {
322329
"hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6"
323330
},
324331
"kernelspec": {
325-
"display_name": "Python 3.8.10 64-bit",
332+
"display_name": "Python 3 (ipykernel)",
333+
"language": "python",
326334
"name": "python3"
327335
},
328336
"language_info": {
@@ -335,7 +343,7 @@
335343
"name": "python",
336344
"nbconvert_exporter": "python",
337345
"pygments_lexer": "ipython3",
338-
"version": "3.8.10"
346+
"version": "3.8.13"
339347
}
340348
},
341349
"nbformat": 4,

examples/grand_mesa_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"outputs": [],
5555
"source": [
5656
"# Configure ICESat-2 API\n",
57-
"icesat2.init(\"icesat2sliderule.org\", verbose=False)"
57+
"icesat2.init(\"slideruleearth.io\", verbose=False)"
5858
]
5959
},
6060
{

0 commit comments

Comments
 (0)