SpatioTemporalSampler#
- class torchgeo.samplers.SpatioTemporalSampler(spatial_sampler, temporal_sampler)[source]#
Bases:
GeoSamplerProduct of a spatial and a temporal sampler.
Added in version 0.10.
- __init__(spatial_sampler, temporal_sampler)[source]#
Initialize a new SpatioTemporalSampler instance.
- Parameters:
spatial_sampler (SpatialSampler) – A spatial sampling strategy.
temporal_sampler (TemporalSampler) – A temporal sampling strategy.
- __iter__()[source]#
Iterate over generated sample locations for each epoch.
- Yields:
[xmin – xmax, ymin:ymax, tmin:tmax] coordinates to index a dataset.