Hello!
I have just begun working with EO Learn and was following the example code located here: https://github.com/sentinel-hub/eo-learn/blob/master/examples/water-monitor/WaterMonitorWorkflow.ipynb
I have trimmed it down just to search imagery, add_ndwi, and do the cloud detection. However, I am getting the following error: AttributeError: During execution of task S2L1CWCSInput: ‘NoneType’ object has no attribute ‘CONFIG_PARAMS’
I am working in Spyder.
input_task = S2L1CWCSInput(‘TRUE-COLOR-S2-L1C’, resx=‘20m’, resy=‘20m’, maxcc=0.5, instance_id=None)
add_ndwi = S2L1CWCSInput(‘NDWI’)
cloud_classifier = get_s2_pixel_cloud_detector(average_over=2, dilation_size=1, all_bands=False)
cloud_det = AddCloudMaskTask(cloud_classifier, ‘BANDS-S2CLOUDLESS’, cm_size_y=‘160m’, cm_size_x=‘160m’,
cmask_feature=‘CLM’, cprobs_feature=‘CLP’, instance_id=None)
workflow = LinearWorkflow(input_task, add_ndwi, cloud_det)
time_interval = d‘2016-01-01’,‘2018-08-31’]
dam_bbox = BBox(bbox=,19.10818927, -34.08851246, 19.30962163, -33.977424140000004], crs=CRS.WGS84)
result = workflow.execute({
input_task: {
‘bbox’: dam_bbox,
‘time_interval’: time_interval
},
})
patch = list(result.values())}-1]
Any help would be greatly appreciated!
Thanks!
Sasha