卫星图像数据源配准
在本教程中,您将学习如何在 Planetary Computer 上使用 stackstac 将来自 Sentinel-2 Level 2A 和 Landsat Collection 2 Level-2 的两个空间重叠栅格图像配准(对齐)到一个数据集中。然后,您将计算所得数据集的归一化差异植被指数 (NDVI),并将其与基于原始数据的 NDVI 进行比较。
本教程包括以下步骤:
import planetary_computer
import numpy as np
import pandas as pd
import xarray as xr
import stackstac
import pystac_client
import rasterio
import xrspatial.multispectral as ms
准备工作:创建本地Dask集群
在本教程中,您将使用一个小型数据集。创建一个本地 Dask 集群来保存你的数据。
from dask.distributed import Clientclient = Client()
print(f"/proxy/{client.scheduler_info()['services']['dashboard']}/status")