Skip to content

Commit eaedcc0

Browse files
author
pcoma55
committed
updates to data-viz sample guide
1 parent edfb5ac commit eaedcc0

File tree

2 files changed

+129
-10
lines changed

2 files changed

+129
-10
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,5 @@ articles/planetary-computer/helper-content/generate_collection_docs.py
158158
articles/planetary-computer/sentinel-2-l2a-grindavik.md
159159
articles/planetary-computer/umbra-sar.md
160160
articles/planetary-computer/naip-airports.md
161+
articles/planetary-computer/temp_editor.md.json
162+
articles/planetary-computer/temp_editor.md

articles/planetary-computer/data-visualization-samples.md

Lines changed: 127 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,57 @@ description: Learn the step-by-step process to configure render settings for vis
44
author: prasadko
55
ms.author: prasadkomma
66
ms.service: planetary-computer-pro
7-
ms.topic: get-started
7+
ms.topic: quickstart
88
ms.date: 05/08/2025
99
ms.custom:
1010
- build-2025
1111
---
1212

1313
# Microsoft Planetary Computer Pro Data Visualization Gallery
1414

15+
This gallery provides ready-to-use configuration examples for visualizing common geospatial data types in Microsoft Planetary Computer Pro. Each example includes comprehensive JSON configurations for mosaics, render options, tile settings, and STAC collection metadata that you can adapt for your own datasets.
1516

16-
## Sentinel-2-l2a Collection Configuration
17+
## Prerequisites
1718

18-
[Collection description to be added here]
19+
Before using these examples, you should have:
20+
21+
- A deployed [Microsoft Planetary Computer Pro GeoCatalog resource](./deploy-geocatalog-resource.md)
22+
- Basic familiarity with [STAC concepts](./stac-overview.md) and [collection configuration](./collection-configuration-concept.md)
23+
- Data [ingested into a STAC collection](./ingestion-overview.md)
24+
25+
## How to use these examples
26+
27+
Each example in this gallery includes:
28+
29+
1. **Description and context** - Information about the data source and visualization approach
30+
2. **Visual example** - Screenshot of the rendered data in the Explorer
31+
3. **Complete configuration settings** organized in tabs:
32+
- **Mosaic** - How to filter and select items for display
33+
- **Render Options** - How to style and visualize the data
34+
- **Tile Settings** - How to optimize display parameters
35+
- **STAC Collection** - The underlying collection metadata structure
36+
37+
To apply these examples to your own data:
38+
39+
1. Create a new collection in your GeoCatalog
40+
2. Navigate to the collection's configuration page
41+
3. Modify the example JSON to match your dataset's specific bands, assets, and properties
42+
4. Apply the configurations to your collection
43+
5. View the results in the Explorer
44+
45+
## Sentinel-2-l2a Collection Configuration
1946

2047
[ ![Screenshot of Sentinel-2-l2a data visualization](media/sentinel-2-imagery.png) ](media/sentinel-2-imagery.png#lightbox)
2148

22-
[Description of data source and link to where to get the data]
49+
[Sentinel-2](https://planetarycomputer.microsoft.com/dataset/sentinel-2-l2) is a high-resolution, multi-spectral imaging mission from the European Space Agency (ESA) as part of the Copernicus Program.
2350

2451
## Configuration details
2552

2653
# [Mosaic](#tab/sentinel-2-l2a-grindavik-mosaics)
2754

2855
## Mosaic Configuration
2956

30-
The mosaic configuration defines how images are combined when displayed in the Explorer.
57+
The mosaic configuration shown below tells the Explorer to display the most recent Sentinel-2 images from the collection, but only those with cloud cover less than or equal to 40%. The cql (Common Query Language) filter ensures that only relatively clear images are included, making the visualization more useful for most applications. Each mosaic entry can define different criteria for selecting and combining images, and this example uses a single "default" mosaic focused on recent, low-cloud imagery.
3158

3259
```json
3360
[
@@ -54,7 +81,30 @@ The mosaic configuration defines how images are combined when displayed in the E
5481

5582
## Render Options Configuration
5683

57-
The render options configuration defines how imagery is displayed in the Explorer.
84+
This render configuration defines several ways to visualize Sentinel-2 satellite imagery in the Explorer. Each entry describes a different style or scientific product, such as **Natural color** (what you’d see with your eyes), **Color infrared** (to highlight vegetation), or **NDVI** (a vegetation health index).
85+
86+
The `options` string specifies how to visualize the data:
87+
88+
- `assets=B04&assets=B03&assets=B02`:
89+
This tells the system which bands (layers of satellite data) to use for the image. For example, B04 is red, B03 is green, and B02 is blue—together, they make a true-color image.
90+
91+
- `nodata=0`:
92+
Any pixel with a value of 0 is treated as missing or transparent.
93+
94+
- `color_formula=Gamma RGB 3.2 Saturation 0.8 Sigmoidal RGB 25 0.35`:
95+
This applies color corrections to make the image look more natural or visually appealing.
96+
- **Gamma** adjusts brightness
97+
- **Saturation** changes color intensity
98+
- **Sigmoidal** adjusts contrast
99+
100+
- `expression=(B08-B04)/(B08+B04)`:
101+
For NDVI and NDWI, this calculates a mathematical formula using the bands to create a new image that highlights vegetation or moisture.
102+
103+
- `rescale=-1,1`:
104+
This stretches the calculated values to fit a color scale, so the results are easy to interpret.
105+
106+
- `colormap_name=rdylgn`:
107+
This applies a color palette (red-yellow-green) to the result, making it easier to see differences.
58108

59109
```json
60110
[
@@ -145,6 +195,15 @@ The tile settings configuration defines how data is tiled and displayed at diffe
145195

146196
The STAC Collection configuration defines the core metadata for this collection.
147197

198+
The `item_assets` section in the STAC Collection JSON serves as a critical catalog of all available data assets in the collection. It defines each spectral band (B01-B12, B8A, etc.) and its properties, including:
199+
200+
* Asset keys (like "B04", "B03") that are referenced by the render configuration
201+
Metadata about each band (resolution, data type, roles)
202+
* Band descriptions that explain what each band represents (e.g., B04 is "red", B08 is "near infrared")
203+
* Wavelength information useful for scientific applications
204+
205+
The render configuration directly references these asset keys to create different visualizations. For example, when the render configuration specifies `assets=B04&assets=B03&assets=B02`, it's pulling the red, green, and blue bands defined in item_assets to create a natural color image.
206+
148207
```json
149208
{
150209
"id": "sentinel-2-l2a_Grindavik",
@@ -720,7 +779,38 @@ The mosaic configuration defines how images are combined when displayed in the E
720779

721780
## Render Options Configuration
722781

723-
The render options configuration defines how imagery is displayed in the Explorer.
782+
This render configuration offers three different ways to visualize the National Agriculture Imagery Program (NAIP) data. NAIP imagery contains four spectral bands stored in a single multi-band asset called "image":
783+
784+
1. **Band 1**: Red
785+
2. **Band 2**: Green
786+
3. **Band 3**: Blue
787+
4. **Band 4**: Near Infrared (NIR)
788+
789+
Each visualization option uses these bands differently:
790+
791+
### Natural Color (True Color)
792+
793+
- **Configuration**: `"options": "assets=image&asset_bidx=image|1,2,3"`
794+
- **How it works**: This option maps the first three bands of the NAIP imagery to the corresponding Red, Green, and Blue channels for display.
795+
- **Red channel**: Band 1 (Red)
796+
- **Green channel**: Band 2 (Green)
797+
- **Blue channel**: Band 3 (Blue)
798+
- **Result**: This produces a "true color" image that approximates what the human eye would see.
799+
800+
### Color Infrared
801+
802+
- **Configuration**: `"options": "assets=image&asset_bidx=image|4,1,2&color_formula=Sigmoidal RGB 15 0.35"`
803+
- **How it works**: This is a "false color" composite that is particularly useful for vegetation analysis. It maps the bands as follows:
804+
- **Red channel**: Band 4 (Near Infrared)
805+
- **Green channel**: Band 1 (Red)
806+
- **Blue channel**: Band 2 (Green)
807+
- **Result**: Healthy vegetation reflects strongly in the near-infrared spectrum, so it appears as bright red in the resulting image. Urban areas or bare soil appear blue or gray. The `color_formula` is used to increase the contrast and visual appeal of the image.
808+
809+
### Normalized Difference Vegetation Index (NDVI)
810+
811+
- **Configuration**: `"options": "expression=(image_b4 - image_b1)/(image_b4 + image_b1)&rescale=-1,1&colormap_name=rdylgn"`
812+
- **How it works**: This option doesn't display the source imagery directly. Instead, it calculates the NDVI for each pixel using a mathematical formula: `(NIR - Red) / (NIR + Red)`. In this case, that corresponds to `(Band 4 - Band 1) / (Band 4 + Band 1)`.
813+
- **Result**: The result of the NDVI calculation is a value between -1 and 1, which is a measure of vegetation health and density. The `rescale=-1,1` parameter scales the output colors to this range, and the `colormap_name=rdylgn` parameter applies a "Red-Yellow-Green" color map. Areas with dense, healthy vegetation appear green, while areas with little or no vegetation appear red or yellow.
724814

725815
```json
726816
[
@@ -992,7 +1082,7 @@ The STAC Collection configuration defines the core metadata for this collection.
9921082

9931083
## Mosaic Configuration
9941084

995-
The mosaic configuration defines how images are combined when displayed in the Explorer.
1085+
This is the default mosaic configuration.
9961086

9971087
```json
9981088
[
@@ -1009,7 +1099,18 @@ The mosaic configuration defines how images are combined when displayed in the E
10091099

10101100
## Render Options Configuration
10111101

1012-
The render options configuration defines how imagery is displayed in the Explorer.
1102+
The render configuration works as follows:
1103+
1104+
**VV polarization**: Refers to "Vertical transmit, Vertical receive" radar signals, which are effective for detecting man-made structures and surface roughness
1105+
1106+
* **Key parameters**:
1107+
* `assets=GEC`: Selects the geocoded ellipsoid corrected (GEC) asset from the STAC item
1108+
* `rescale=0,255`: Transforms the radar backscatter values to an 8-bit range for proper visualization
1109+
* `colormap_name=gray`: Applies a grayscale color palette appropriate for intensity data
1110+
* **Conditions**: Only applies this rendering to items that specifically have VV polarization data
1111+
* **minZoom:** Sets the minimum map zoom level (8) at which this layer becomes visible
1112+
1113+
This configuration creates a grayscale visualization where brighter areas represent stronger radar returns, typically indicating buildings, rough terrain, or other surfaces that strongly reflect radar signals.
10131114

10141115
```json
10151116
[
@@ -1050,8 +1151,24 @@ The tile settings configuration defines how data is tiled and displayed at diffe
10501151

10511152
## STAC Collection configuration
10521153

1053-
The STAC Collection configuration defines the core metadata for this collection.
1154+
The `item_assets` section is a critical component of the STAC Collection JSON that defines the assets (data files) available within each item of this collection. For this Umbra SAR collection:
1155+
1156+
This section tells us:
1157+
1158+
1. **Asset Key**: `GEC` is the key identifier used to reference this asset in render configurations (`assets=GEC`)
1159+
1160+
2. **Data Format**: The asset is a cloud-optimized GeoTIFF, which allows efficient access to portions of the imagery
1161+
1162+
3. **Radar Properties**:
1163+
- This is VV polarization data (vertical transmit, vertical receive)
1164+
- Contains terrain-corrected gamma naught values with radiometric correction
1165+
1166+
4. **Technical Specifications**:
1167+
- `nodata` value of `-32768` indicates pixels with no data
1168+
- Data is stored as 8-bit unsigned integers (`uint8`)
1169+
- The spatial resolution is approximately 0.48 meters per pixel
10541170

1171+
This asset definition is directly referenced in the render configuration via `assets=GEC`, and the rendering parameters (`rescale=0,255&colormap_name=gray`) are designed to properly visualize the SAR backscatter values in this specific data asset.
10551172
```json
10561173
{
10571174
"id": "umbra-sar",

0 commit comments

Comments
 (0)