Skip to content

Commit

Permalink
Render all notebooks (#119)
Browse files Browse the repository at this point in the history
* render all notebooks
* let qaqc pass even with link errors
* execute dataint2
* update citation.cff from team.yml
* cell tags for hiding output
* bump cache key
* bump to ATL11 v5
* skip execution of cloud access cells
  • Loading branch information
scottyhq authored Apr 15, 2022
1 parent b14d3e2 commit 9da28ab
Show file tree
Hide file tree
Showing 11 changed files with 12,030 additions and 338 deletions.
2 changes: 1 addition & 1 deletion .github/actions/buildresources/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
with:
path: ./book/_build
# NOTE: change key to "jupyterbook-N-DATE"
key: jupyterbook-2022-03-23
key: jupyterbook-2022-04-14

- uses: ./.github/actions/setupconda

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/qaqc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ jobs:
- name: Check External Links
if: always()
continue-on-error: true
run: |
jb build book --builder linkcheck
94 changes: 78 additions & 16 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,28 +1,90 @@
cff-version: 1.2.0
message: "If you use this book, please cite it as below."
title: "[Event Name] Hackweek JupyterBook Tutorials"
version: 2021.??.??
date-released: "2021-??-??"
message: If you use this book, please cite it as below.
title: ICESat-2 Hackweek Website
version: 2022.04.15
date-released: 2022-04-15
identifiers:
- description: "collection of archived snapshots of all versions"
- description: collection of archived snapshots of all versions
type: doi
value: TODO
license: MIT
repository-code: TODO
repository-code: https://github.com/ICESAT-2HackWeek/website2022
authors:
- family-names: Henderson
given-names: Scott
orcid: "https://orcid.org/0000-0003-0624-4965"
affiliation: University of Washington
- family-names: Arendt
given-names: Anthony
orcid: "https://orcid.org/0000-0003-0429-6905"
affiliation: University of Washington
- family-names: Scheick
given-names: Jessica
affiliation: University of New Hampshire
orcid: "https://orcid.org/0000-0002-3421-4459"

- family-names: Arendt
given-names: Anthony
affiliation: eScience Institute
- family-names: Haley
given-names: Charley
affiliation: Collaboration Architect at eScience Institute
- family-names: Henderson
given-names: Scott
affiliation: eScience Institute
- family-names: Koh
given-names: Jane
affiliation: eScience Institute
- family-names: Setiawan
given-names: Don
affiliation: School of Oceanography
- family-names: Alterman
given-names: Naomi
affiliation: eScience Institute
- family-names: Meyer
given-names: Joachim
affiliation: University of Utah
- family-names: Cristea
given-names: Nicoleta
affiliation: eScience Institute
- family-names: Schweiger
given-names: Axel
affiliation: Polar Science Center/APL/UW
- family-names: Barciauskas
given-names: Aimee
affiliation: Development Seed
- family-names: Smith
given-names: Ben
affiliation: University of Washington APL
- family-names: Piunno
given-names: Romina
affiliation: University of Toronto
- family-names: Shapero
given-names: Daniel
affiliation: UW Applied Physics Laboratory
- family-names: Fair
given-names: Zachary
affiliation: NASA GSFC
- family-names: Arndt
given-names: Philipp
affiliation: Scripps Polar Center, UC San Diego
- family-names: Leong
given-names: Wei Ji
affiliation: Byrd Polar and Climate Research Center
- family-names: Sutterley
given-names: Tyler
affiliation: UW Applied Physics Laboratory
- family-names: Snow
given-names: Tasha
affiliation: Colorado School of Mines
- family-names: Beig
given-names: Mikala
affiliation: National Snow and Ice Data Center NASA DAAC
- family-names: Besso
given-names: Hannah
affiliation: University of Washington
- family-names: Liu
given-names: Zheng
affiliation: Polar Science Center/APL/UW
- family-names: Joughin
given-names: Ian
affiliation: Polar Science Center/APL/UW
- family-names: Bisson
given-names: Kelsey
affiliation: Oregon State University
- family-names: Sauthoff
given-names: Wilson
affiliation: Colorado School of Mines
keywords:
- NASA
- Hackweek
Expand Down
2 changes: 0 additions & 2 deletions book/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ execute:
execute_notebooks: 'cache'
exclude_patterns:
- "**/dataintegration-1.ipynb"
- "**/dataintegration-2.ipynb"
- "**/geospatial-advanced.ipynb"
- "**/Visualization_Earth_Engine_geemap_IS2_HW_2022.ipynb"
- "**/Visualization_geemap_use_examples.ipynb"

Expand Down
11,317 changes: 11,123 additions & 194 deletions book/tutorials/DataIntegration/dataintegration-1.ipynb

Large diffs are not rendered by default.

53 changes: 44 additions & 9 deletions book/tutorials/DataIntegration/dataintegration-2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@
"execution_count": null,
"id": "d7c8cfa3-dcdb-4cb0-b093-0dacfb25a0af",
"metadata": {
"tags": []
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -600,7 +602,11 @@
"cell_type": "code",
"execution_count": null,
"id": "06088dda",
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"myUrls.getURLS()"
Expand Down Expand Up @@ -653,7 +659,11 @@
"cell_type": "code",
"execution_count": null,
"id": "14078020",
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"urlNames = [x.replace('vv','*').replace('.tif','') for x in myUrls.getCogs()] # getCogs filters to ensure tif products\n",
Expand Down Expand Up @@ -717,7 +727,11 @@
"cell_type": "code",
"execution_count": null,
"id": "be0c3927",
"metadata": {},
"metadata": {
"tags": [
"remove-output"
]
},
"outputs": [],
"source": [
"myVelSeries.loadRemote() # Load the data to memory"
Expand Down Expand Up @@ -755,12 +769,25 @@
"cell_type": "code",
"execution_count": null,
"id": "92ea55dc",
"metadata": {},
"metadata": {
"tags": [
"remove-output"
]
},
"outputs": [],
"source": [
"myOverview = nisar.nisarVelSeries() # Create Series\n",
"myOverview.readSeriesFromTiff([urlNames[-1]], url=True, readSpeed=False, overviewLevel=3) # readSpeed=False computes speed from vx, vy rather than downloading\n",
"myOverview.loadRemote()\n",
"myOverview.loadRemote()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "747fcf69-e4f7-487f-9ed7-323614848268",
"metadata": {},
"outputs": [],
"source": [
"myOverview.xr # Add semicolon after to suppress output"
]
},
Expand Down Expand Up @@ -1395,7 +1422,11 @@
"cell_type": "code",
"execution_count": null,
"id": "24552df8-9bba-4754-9e16-7aa70ee99aa8",
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"# Set Earthdata credentials\n",
Expand All @@ -1411,7 +1442,11 @@
"cell_type": "code",
"execution_count": null,
"id": "00221419-857c-43a9-a1f6-589691d250ed",
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"path = '/tmp/DataIntegration/'\n",
Expand All @@ -1430,7 +1465,7 @@
"fig, ax = plt.subplots(1, 1)\n",
"\n",
"# Iterate through the files to grab elevation, and derive elevation differences relative to April 2019\n",
"files = ['processed_' + granule for granule in region.avail_granules(ids=True)[0]]\n",
"files = ['/tmp/DataIntegration/processed_' + granule for granule in region.avail_granules(ids=True)[0]]\n",
"\n",
"# Get the initial data from April 2019\n",
"with h5py.File(files[0]) as f:\n",
Expand Down
Loading

0 comments on commit 9da28ab

Please sign in to comment.