Skip to content

Commit

Permalink
Replace docstring for paths in all raster
Browse files Browse the repository at this point in the history
  • Loading branch information
adriantre committed Sep 28, 2023
1 parent 5f532a0 commit 21e5d84
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 43 deletions.
3 changes: 1 addition & 2 deletions torchgeo/datasets/agb_live_woody_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down
5 changes: 2 additions & 3 deletions torchgeo/datasets/astergdem.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found, here the collection of
individual zip files for each tile should be found
paths: one or more root directories to search or files to load, here
the collection of individual zip files for each tile should be found
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down
3 changes: 1 addition & 2 deletions torchgeo/datasets/cdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down
3 changes: 1 addition & 2 deletions torchgeo/datasets/chesapeake.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down
3 changes: 1 addition & 2 deletions torchgeo/datasets/cms_mangrove_canopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down
3 changes: 1 addition & 2 deletions torchgeo/datasets/esri2020.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down
5 changes: 2 additions & 3 deletions torchgeo/datasets/eudem.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found, here the collection of
individual zip files for each tile should be found
paths: one or more root directories to search or files to load, here
the collection of individual zip files for each tile should be found
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down
3 changes: 1 addition & 2 deletions torchgeo/datasets/globbiomass.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down
3 changes: 1 addition & 2 deletions torchgeo/datasets/l7irish.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ def __init__(
"""Initialize a new L7Irish instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to EPSG:3857)
res: resolution of the dataset in units of CRS
Expand Down
3 changes: 1 addition & 2 deletions torchgeo/datasets/l8biome.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ def __init__(
"""Initialize a new L8Biome instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to EPSG:3857)
res: resolution of the dataset in units of CRS
Expand Down
25 changes: 12 additions & 13 deletions torchgeo/datasets/landcoverai.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,21 +229,20 @@ def __init__(
"""Initialize a new LandCover.ai NonGeo dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
(defaults to the resolution of the first file found)
transforms: a function/transform that takes input sample and its target as
entry and returns a transformed version
cache: if True, cache file handle to speed up repeated sampling
download: if True, download dataset and store it in the root directory
checksum: if True, check the MD5 of the downloaded files (may be slow)
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
(defaults to the resolution of the first file found)
transforms: a function/transform that takes input sample and its target as
entry and returns a transformed version
cache: if True, cache file handle to speed up repeated sampling
download: if True, download dataset and store it in the root directory
checksum: if True, check the MD5 of the downloaded files (may be slow)
Raises:
RuntimeError: if ``download=False`` and data is not found, or checksums
don't match
RuntimeError: if ``download=False`` and data is not found, or checksums
don't match
"""
LandCoverAIBase.__init__(self, paths, download, checksum)
RasterDataset.__init__(
Expand Down
3 changes: 1 addition & 2 deletions torchgeo/datasets/landsat.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down
3 changes: 1 addition & 2 deletions torchgeo/datasets/nlcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down
6 changes: 2 additions & 4 deletions torchgeo/datasets/sentinel.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down Expand Up @@ -306,8 +305,7 @@ def __init__(
"""Initialize a new Dataset instance.
Args:
paths: root directory or list of absolute filepaths where
dataset can be found
paths: one or more root directories to search or files to load
crs: :term:`coordinate reference system (CRS)` to warp to
(defaults to the CRS of the first file found)
res: resolution of the dataset in units of CRS
Expand Down

0 comments on commit 21e5d84

Please sign in to comment.