SpatioTemporalSampler#

class torchgeo.samplers.SpatioTemporalSampler(spatial_sampler, temporal_sampler)[source]#

Bases: GeoSampler

Product of a spatial and a temporal sampler.

Added in version 0.10.

__init__(spatial_sampler, temporal_sampler)[source]#

Initialize a new SpatioTemporalSampler instance.

Parameters:
__iter__()[source]#

Iterate over generated sample locations for each epoch.

Yields:

[xmin – xmax, ymin:ymax, tmin:tmax] coordinates to index a dataset.

plot()[source]#

Plot a visualization of the sampling strategy.

Returns:

An animation visualizing the sampling strategy.

Return type:

FuncAnimation