Skip to content

Instantly share code, notes, and snippets.

View devisperessutti's full-sized avatar

Devis Peressutti devisperessutti

View GitHub Profile
@devisperessutti
devisperessutti / eoworkflow_timelapse.py
Last active April 29, 2023 10:24
Timelapse EOWorkflow
# generic imports
import os
import imageio
import datetime
import numpy as np
# sentinelhub-py and eo-learn imports
from sentinelhub.geometry import BBox
from sentinelhub.constants import CRS, DataSource
from eolearn.core import EOTask, FeatureType, LinearWorkflow
class FooTask(EOTask):
def __init__(self, foo_param):
self.foo_param = foo_param
def execute(self, eopatch, *, patch_specific_param):
# do what foo does on input eopatch and return it
return eopatch