Datasets
GeoDataset
Bases: BaseDataset
Source code in rs_tools/_src/datamodule/datasets.py
__init__(data_dir, editors, splits_dict, ext='nc', limit=None, load_coords=True, load_cloudmask=True, **kwargs)
Initialize the GeoDataset class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_dir |
List[str]
|
A list of directories containing the data files. |
required |
editors |
List[Editor]
|
A list of editors for data preprocessing. |
required |
splits_dict |
Dict
|
A dictionary specifying the splits for the dataset. Defaults to None. |
required |
ext |
str
|
The file extension of the data files. Defaults to "nc". |
'nc'
|
limit |
int
|
The maximum number of files to load. Defaults to None. |
None
|
load_coords |
bool
|
Whether to load the coordinates. Defaults to True. |
True
|
load_cloudmask |
bool
|
Whether to load the cloud mask. Defaults to True. |
True
|
**kwargs |
Additional keyword arguments. |
{}
|