GBIF#
- class torchgeo.datasets.GBIF(root='data')[source]#
Bases:
GeoDatasetDataset for the Global Biodiversity Information Facility.
GBIF, the Global Biodiversity Information Facility, is an international network and data infrastructure funded by the world’s governments and aimed at providing anyone, anywhere, open access to data about all types of life on Earth.
This dataset is intended for use with GBIF’s occurrence records. It may or may not work for other GBIF datasets. Data for a particular species or region of interest can be downloaded from the above link.
If you use a GBIF dataset in your research, please cite it according to:
Added in version 0.3.
- __init__(root='data')[source]#
Initialize a new Dataset instance.
- Parameters:
root (str | PathLike[str]) – root directory where dataset can be found
- Raises:
DatasetNotFoundError – If dataset is not found.
- __getitem__(index)[source]#
Retrieve input, target, and/or metadata indexed by spatiotemporal slice.
- Parameters:
index (slice | tuple[slice] | tuple[slice, slice] | tuple[slice, slice, slice]) – [xmin:xmax:xres, ymin:ymax:yres, tmin:tmax:tres] coordinates to index.
- Returns:
Sample of input, target, and/or metadata at that index.
- Raises:
IndexError – If index is not found in the dataset.
- Return type: