Hello!
I am using eo-learn python pkg to get the Sentinel-1 data. I noticed that each batch has different acquisitions. To solve this problem, I’d like to use MapFeatureTask
. I wrote the following script, but I cannot get any results. I would appreciate it if you could guide me to know where is the problem?
# Retrieve S1 data
s1_vv_des = S1IWWCSInput('IW_VV', resx='10m', resy='10m', orbit='descending')
mean = MapFeatureTask((FeatureType.DATA, 'IW_VH'), # input features
(FeatureType.MASK, 'm1'), # output feature
np.mean, # a function to apply to each feature
axis=0)
export_tiff = ExportToTiff(feature=(FeatureType.DATA, 'IW_VH'),
#folder="img_tiff",
crs=CRS.UTM_35N)
# Define the workflow
workflow = LinearWorkflow(
s1_vh_des,
mean,
export_tiff
)
%%time
# Execute the workflow
#time_interval = ='2017-08-07', '2017-08-10'] # before
time_interval = ='2017-08-13', '2017-08-16'] #after
# define additional parameters of the workflow
execution_args = =]
for idx, bbox in enumerate(bbox_list):
execution_args.append({
s1_vh_des:{'bbox': bbox, 'time_interval': time_interval},
maximum:{},
export_tiff: {'filename': '{}/eopatch_{}.tiff'.format(tiff_location, idx)}
})
executor = EOExecutor(workflow, execution_args, save_logs=False, logs_folder=OUTPUT_FOLDER)
executor.run(workers=5, multiprocess=False)
executor.make_report()