Spatiotemporal utils#

class eocrops.tasks.preprocessing.PolygonMask(*args, **kwargs)[source]#

Bases: EOTask

EOTask that performs rasterization from an inputs shapefile into : - data_timeless feature ‘FIELD_ID’ (0 nodata; 1,…,N for each observation of the shapefile ~ object IDs) - mask_timeless feature ‘MASK’ (0 if pixels outside the polygon(s) from the shapefile, 1 otherwise

Parameters:
geodataframeTYPE GeoDataFrame

Input geodataframe read as GeoDataFrame, each observation represents a polygon (e.g. fields)

new_feature_nameTYPE string

Name of the new features which contains clustering_task predictions

Returns:
EOPatch

Stores initialization parameters and the order to the instance attribute init_args.

class eocrops.tasks.preprocessing.MaskPixels(*args, **kwargs)[source]#

Bases: EOTask

Parameters:
feature (list): of features in data and/or data_timeless
fname (str): name of the mask
class eocrops.tasks.preprocessing.InterpolateFeatures(*args, **kwargs)[source]#

Bases: EOTask

Stores initialization parameters and the order to the instance attribute init_args.