Skip to content

Commit

Permalink
Add support for NEON AOP data (#43)
Browse files Browse the repository at this point in the history
* Add support for NEON AOP data

* Add NEON AOP spectral signatures

* Add NEON demo to docs
  • Loading branch information
giswqs authored Jun 7, 2024
1 parent 6187c25 commit d3257e4
Show file tree
Hide file tree
Showing 8 changed files with 506 additions and 44 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

## Features

- Interactive visualization and analysis of hyperspectral data (e.g., [EMIT](https://earth.jpl.nasa.gov/emit), [PACE](https://pace.gsfc.nasa.gov), [DESIS](https://www.earthdata.nasa.gov/s3fs-public/imported/DESIS_TCloud_Mar0421.pdf))
- Interactive visualization and analysis of hyperspectral data, such as [EMIT](https://earth.jpl.nasa.gov/emit), [PACE](https://pace.gsfc.nasa.gov), [DESIS](https://www.earthdata.nasa.gov/s3fs-public/imported/DESIS_TCloud_Mar0421.pdf), [NEON AOP](https://data.neonscience.org/data-products/DP3.30006.001)
- Interactive visualization of NASA [ECOSTRESS](https://ecostress.jpl.nasa.gov) data
- Interactive extraction and visualization of spectral signatures
- Saving spectral signatures as CSV files
Expand All @@ -23,15 +23,19 @@

- Visualizing NASA [EMIT](https://earth.jpl.nasa.gov/emit) hyperspectral data interactively

![](https://i.imgur.com/zeyABMq.gif)
![EMIT](https://i.imgur.com/zeyABMq.gif)

- Visualizing NASA [PACE](https://pace.gsfc.nasa.gov) hyperspectral data interactively

![](https://i.imgur.com/HBMjW6o.gif)
![PACE](https://i.imgur.com/HBMjW6o.gif)

- Visualizing [DESIS](https://www.earthdata.nasa.gov/s3fs-public/imported/DESIS_TCloud_Mar0421.pdf) hyperspectral data interactively

![](https://i.imgur.com/PkwOPN5.gif)
![DESIS](https://i.imgur.com/PkwOPN5.gif)

- Visualizing [NEON AOP](https://data.neonscience.org/data-products/DP3.30006.001) hyperspectral data interactively

![NEON](https://i.imgur.com/CNP8E3y.gif)

## Acknowledgement

Expand Down
125 changes: 125 additions & 0 deletions docs/examples/neon.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[![image](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/opengeos/HyperCoast/blob/main/docs/examples/neon.ipynb)\n",
"\n",
"# Visualizing NEON AOP hyperspectral data interactively with HyperCoast\n",
"\n",
"This notebook demonstrates how to visualize [NEON AOP](https://data.neonscience.org/data-products/DP3.30006.001) hyperspectral data interactively with HyperCoast."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# %pip install \"hypercoast[extra]\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import hypercoast"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"url = \"https://github.com/opengeos/datasets/releases/download/hypercoast/NEON_D02_SERC_DP3_368000_4306000_reflectance.h5\"\n",
"filepath = \"data/neon.h5\"\n",
"hypercoast.download_file(url, filepath)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Load the dataset as a `xarray.Dataset` object."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"dataset = hypercoast.read_neon(filepath)\n",
"dataset"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Visualize the data interactively with HyperCoast."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"m = hypercoast.Map()\n",
"m.add_neon(filepath, wavelengths=[1000, 700, 500], vmin=0, vmax=0.5)\n",
"m"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"m.set_center(-76.5134, 38.8973, 16)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"m.add(\"spectral\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://i.imgur.com/CNP8E3y.gif)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "hyper",
"language": "python",
"name": "python3"
},
"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.10.14"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
12 changes: 8 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## Features

- Interactive visualization and analysis of hyperspectral data (e.g., [EMIT](https://earth.jpl.nasa.gov/emit), [PACE](https://pace.gsfc.nasa.gov), [DESIS](https://www.earthdata.nasa.gov/s3fs-public/imported/DESIS_TCloud_Mar0421.pdf))
- Interactive visualization and analysis of hyperspectral data, such as [EMIT](https://earth.jpl.nasa.gov/emit), [PACE](https://pace.gsfc.nasa.gov), [DESIS](https://www.earthdata.nasa.gov/s3fs-public/imported/DESIS_TCloud_Mar0421.pdf), [NEON AOP](https://data.neonscience.org/data-products/DP3.30006.001)
- Interactive visualization of NASA [ECOSTRESS](https://ecostress.jpl.nasa.gov) data
- Interactive extraction and visualization of spectral signatures
- Saving spectral signatures as CSV files
Expand All @@ -22,15 +22,19 @@

- Visualizing NASA [EMIT](https://earth.jpl.nasa.gov/emit) hyperspectral data interactively

![](https://i.imgur.com/zeyABMq.gif)
![EMIT](https://i.imgur.com/zeyABMq.gif)

- Visualizing NASA [PACE](https://pace.gsfc.nasa.gov) hyperspectral data interactively

![](https://i.imgur.com/HBMjW6o.gif)
![PACE](https://i.imgur.com/HBMjW6o.gif)

- Visualizing [DESIS](https://www.earthdata.nasa.gov/s3fs-public/imported/DESIS_TCloud_Mar0421.pdf) hyperspectral data interactively

![](https://i.imgur.com/PkwOPN5.gif)
![DESIS](https://i.imgur.com/PkwOPN5.gif)

- Visualizing [NEON AOP](https://data.neonscience.org/data-products/DP3.30006.001) hyperspectral data interactively

![NEON](https://i.imgur.com/CNP8E3y.gif)

## Acknowledgement

Expand Down
3 changes: 3 additions & 0 deletions docs/neon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# neon module

::: hypercoast.neon
Loading

0 comments on commit d3257e4

Please sign in to comment.