{
"cells": [
{
"cell_type": "markdown",
"id": "c798da7c",
"metadata": {},
"source": [
"## Writing outputs to Azure Blob Storage\n",
"\n",
"Azure provide [many options](https://azure.microsoft.com/en-us/product-categories/storage/) for storing data. For cloud-native workflows favored by the Planetary Computer, [Azure Blob Storage](https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction) is a good choice. In this example we'll compute NDVI for a single image and write the results to a container in Azure Blob Storage as a single-band COG. Note that your storage and compute should be located in the same [Azure region](https://azure.microsoft.com/en-us/global-infrastructure/geographies/). The Planetary Computer Hub and data reside in the West Europe region.\n",
"\n",
"### Compute NDVI\n",
"\n",
"We need something to write. To simulate a workload, let's load in a single [NAIP image](https://planetarycomputer.microsoft.com/dataset/naip#Example-Notebook) from the Planetary Computer's data catalog using [rioxarray](https://corteva.github.io/rioxarray/html/rioxarray.html) and compute the NDVI using [xrspatial](https://xarray-spatial.org/reference/_autosummary/xrspatial.multispectral.ndvi.html)."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "52a7c344",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/plain": [
"