Skip to content

Commit

Permalink
Make a landing page for the examples (#30)
Browse files Browse the repository at this point in the history
* Linkify the list of examples

* Add a landing page for the examples

* Update text descriptions in notebooks

* Make pretty

* Link to rasterio license
  • Loading branch information
mdpiper authored Sep 20, 2024
1 parent 015a565 commit 18c8081
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 123 deletions.
48 changes: 48 additions & 0 deletions examples/README-bmi-geotiff.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "0",
"metadata": {},
"source": [
"# Examples: bmi-geotiff"
]
},
{
"cell_type": "markdown",
"id": "1",
"metadata": {},
"source": [
"Here are a few examples of using the CSDMS GeoTiff data component,\n",
"*bmi-geotiff*.\n",
"\n",
"* [geotiff.ipynb](./geotiff.ipynb) and [bmi-geotiff.ipynb](./bmi-geotiff.ipynb): These Jupyter Notebooks show how to call the GeoTiff data component through its API and its BMI, respectively.\n",
"* [example-pan.py](./example-pan.py): An example Python script showing how to load and display a panchromatic image.\n",
"* [example-rgb.py](./example-rgb.py): An example Python script showing how to load and display a three-band image. The saved output is in [example-rgb.png](./example-rgb.png).\n",
"* [RGB.byte.tif](./RGB.byte.tif): A test GeoTIFF file from the [rasterio](https://github.com/rasterio/rasterio) project, used under their [license](https://github.com/rasterio/rasterio/blob/main/LICENSE.txt).\n",
"* [config.yaml](./config.yaml): A sample configuration file used to pass parameters to the GeoTiff data component."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "CSDMS",
"language": "python",
"name": "csdms"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
14 changes: 6 additions & 8 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Examples
# Examples: bmi-geotiff

Here are a few examples of using the CSDMS GeoTiff data component,
*bmi-geotiff*.

* `geotiff.ipynb` and `bmi-geotiff.ipynb`: These Jupyter Notebooks show
how to call the GeoTiff data component through its API and its BMI, respectively.
* `example-pan.py`: An example Python script showing how to load and display a panchromatic image.
* `example-rgb.py`: An example Python script showing how to load and display a three-band image.
* `example-rgb.png`: The saved output from `example-rgb.py`.
* `RGB.byte.tif`: A test GeoTIFF file [borrowed](https://github.com/rasterio/rasterio/blob/master/tests/data/RGB.byte.tif) from the [rasterio](https://github.com/rasterio/rasterio) project.
* `config.yaml`: A sample configuration file used to pass parameters to the GeoTiff data component.
* [geotiff.ipynb](./geotiff.ipynb) and [bmi-geotiff.ipynb](./bmi-geotiff.ipynb): These Jupyter Notebooks show how to call the GeoTiff data component through its API and its BMI, respectively.
* [example-pan.py](./example-pan.py): An example Python script showing how to load and display a panchromatic image.
* [example-rgb.py](./example-rgb.py): An example Python script showing how to load and display a three-band image. The saved output is in [example-rgb.png](./example-rgb.png).
* [RGB.byte.tif](./RGB.byte.tif): A test GeoTIFF file from the [rasterio](https://github.com/rasterio/rasterio) project, used under their [license](https://github.com/rasterio/rasterio/blob/main/LICENSE.txt).
* [config.yaml](./config.yaml): A sample configuration file used to pass parameters to the GeoTiff data component.
Loading

0 comments on commit 18c8081

Please sign in to comment.