Skip to content

Commit

Permalink
create 2022 cdl for intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
yichiac committed Feb 19, 2024
1 parent 4a60675 commit 5512164
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 3 deletions.
Binary file modified tests/data/cdl/2020_30m_cdls.zip
Binary file not shown.
Binary file modified tests/data/cdl/2021_30m_cdls.zip
Binary file not shown.
Binary file added tests/data/cdl/2022_30m_cdls.zip
Binary file not shown.
Binary file added tests/data/cdl/2022_30m_cdls/2022_30m_cdls.tif
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/data/cdl/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def create_file(path: str, dtype: str, num_channels: int) -> None:
src.write_colormap(1, cmap)


directories = ["2020_30m_cdls", "2021_30m_cdls"]
directories = ["2020_30m_cdls", "2021_30m_cdls", "2022_30m_cdls"]
raster_extensions = [".tif", ".tif.ovr"]


Expand Down
5 changes: 3 additions & 2 deletions tests/datasets/test_cdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def dataset(self, monkeypatch: MonkeyPatch, tmp_path: Path) -> CDL:
monkeypatch.setattr(torchgeo.datasets.cdl, "download_url", download_url)

md5s = {
2021: "e929beb9c8e59fa1d7b7f82e64edaae1",
2020: "e95c2d40ce0c261ed6ee0bd00b49e4b6",
2022: "0c9eb2b1749e545fdd0a6dbd26bc4bc6",
2021: "9efe46ee3c84264e45815b3f842c6900",
2020: "02086e14ce31b3ba4fd35cbf2af3b0fd",
}
monkeypatch.setattr(CDL, "md5s", md5s)
url = os.path.join("tests", "data", "cdl", "{}_30m_cdls.zip")
Expand Down

0 comments on commit 5512164

Please sign in to comment.