Skip to content

Instantly share code, notes, and snippets.

View devisperessutti's full-sized avatar

Devis Peressutti devisperessutti

View GitHub Profile
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
@devisperessutti
devisperessutti / eoworkflow_timelapse.py
Last active July 5, 2024 05:32
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