Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chesapeake: allow multiple datasets to share same root #420

Merged
merged 2 commits into from
Feb 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions torchgeo/datasets/chesapeake.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class Chesapeake(RasterDataset, abc.ABC):
<https://chesapeakeconservancy.org/wp-content/uploads/2017/01/Chesapeake_Conservancy_Accuracy_Assessment_Methodology.pdf>`_
"""

# TODO: this shouldn't be needed, but .tif.ovr file is getting picked up
filename_glob = "*.tif"
is_image = False

@property
Expand Down Expand Up @@ -164,6 +162,7 @@ class Chesapeake7(Chesapeake):

base_folder = "BAYWIDE"
filename = "Baywide_7class_20132014.tif"
filename_glob = filename
zipfile = "Baywide_7Class_20132014.zip"
md5 = "61a4e948fb2551840b6557ef195c2084"

Expand Down Expand Up @@ -210,6 +209,7 @@ class Chesapeake13(Chesapeake):

base_folder = "BAYWIDE"
filename = "Baywide_13Class_20132014.tif"
filename_glob = filename
zipfile = "Baywide_13Class_20132014.zip"
md5 = "7e51118923c91e80e6e268156d25a4b9"

Expand All @@ -219,6 +219,7 @@ class ChesapeakeDC(Chesapeake):

base_folder = "DC"
filename = os.path.join("DC_11001", "DC_11001.img")
filename_glob = filename
zipfile = "DC_11001.zip"
md5 = "ed06ba7570d2955e8857d7d846c53b06"

Expand All @@ -228,6 +229,7 @@ class ChesapeakeDE(Chesapeake):

base_folder = "DE"
filename = "DE_STATEWIDE.tif"
filename_glob = filename
zipfile = "_DE_STATEWIDE.zip"
md5 = "5e12eff3b6950c01092c7e480b38e544"

Expand All @@ -245,6 +247,7 @@ class ChesapeakeMD(Chesapeake):

base_folder = "MD"
filename = "MD_STATEWIDE.tif"
filename_glob = filename
zipfile = "_MD_STATEWIDE.zip"
md5 = "40c7cd697a887f2ffdb601b5c114e567"

Expand All @@ -262,6 +265,7 @@ class ChesapeakeNY(Chesapeake):

base_folder = "NY"
filename = "NY_STATEWIDE.tif"
filename_glob = filename
zipfile = "_NY_STATEWIDE.zip"
md5 = "1100078c526616454ef2e508affda915"

Expand All @@ -271,6 +275,7 @@ class ChesapeakePA(Chesapeake):

base_folder = "PA"
filename = "PA_STATEWIDE.tif"
filename_glob = filename
zipfile = "_PA_STATEWIDE.zip"
md5 = "20a2a857c527a4dbadd6beed8b47e5ab"

Expand All @@ -288,6 +293,7 @@ class ChesapeakeVA(Chesapeake):

base_folder = "VA"
filename = "CIC2014_VA_STATEWIDE.tif"
filename_glob = filename
zipfile = "_VA_STATEWIDE.zip"
md5 = "6f2c97deaf73bb3e1ea9b21bd7a3fc8e"

Expand All @@ -297,6 +303,7 @@ class ChesapeakeWV(Chesapeake):

base_folder = "WV"
filename = "WV_STATEWIDE.tif"
filename_glob = filename
zipfile = "_WV_STATEWIDE.zip"
md5 = "350621ea293651fbc557a1c3e3c64cc3"

Expand Down