This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |