Skip to content

Commit

Permalink
Check file path
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Sep 1, 2024
1 parent af4fe14 commit b8f719c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/examples/jupytext.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Install jupytext using: conda install jupytext -c conda-forge
# Always pair ipynb notebooks to md files.
# formats = "ipynb,md"
formats = "ipynb,myst"

# jupytext --to ipynb *.md # convert all .md files to notebooks with no outputs
# jupytext --to ipynb --execute *.md # convert all .md files to notebooks and execute them
# jupytext --set-formats ipynb,md --execute *.md # convert all .md files to paired notebooks and execute them
# jupytext --to md *.ipynb # convert all .ipynb files to .md files
9 changes: 9 additions & 0 deletions docs/workshops/jupytext.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Install jupytext using: conda install jupytext -c conda-forge
# Always pair ipynb notebooks to md files.
# formats = "ipynb,md"
formats = "ipynb,myst"

# jupytext --to ipynb *.md # convert all .md files to notebooks with no outputs
# jupytext --to ipynb --execute *.md # convert all .md files to notebooks and execute them
# jupytext --set-formats ipynb,md --execute *.md # convert all .md files to paired notebooks and execute them
# jupytext --to md *.ipynb # convert all .ipynb files to .md files
11 changes: 11 additions & 0 deletions docs/workshops/pace.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import hypercoast"
]
},
Expand Down Expand Up @@ -226,6 +227,16 @@
"outputs": [],
"source": [
"filepath = \"data/PACE_OCI.20240730T181157.L2.OC_AOP.V2_0.NRT.nc\"\n",
"if not os.path.exists(filepath):\n",
" raise FileNotFoundError(filepath)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plot = hypercoast.view_pace_pixel_locations(filepath, step=20)"
]
},
Expand Down

0 comments on commit b8f719c

Please sign in to comment.