Created
May 5, 2022 21:35
-
-
Save adamjstewart/ca2b36ef901b898a1a703d6afefc7a58 to your computer and use it in GitHub Desktop.
Creating a Landsat intersection dataset with TorchGeo
This file contains hidden or 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
from torch.utils.data import DataLoader | |
from torchgeo.datasets import CDL, Landsat7, Landsat8, stack_samples | |
from torchgeo.samplers import RandomGeoSampler | |
landsat7 = Landsat7(root="...") | |
landsat8 = Landsat8(root="...", bands=Landsat8.all_bands[1:-2]) | |
landsat = landsat7 | landsat8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment