Created
May 5, 2022 21:53
-
-
Save adamjstewart/18f7962589afd8644c20e539493b3c05 to your computer and use it in GitHub Desktop.
Plotting a Sentinel 2 image with TorchGeo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
from torchgeo.datasets import Sentinel2 | |
from torchgeo.transforms import AppendNDVI | |
dataset = Sentinel2(root="...") | |
sample = dataset[...] | |
fig = dataset.plot(sample) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment