ceos-seo / data_cube_notebooks

Jupyter Notebook examples for our Data Cube capable algorithms and functions
http://ceos-cube.org/
Apache License 2.0
55 stars 27 forks source link

AttributeError: 'DataArray' object has no attribute 'flatten' in fractional_coverage notebook #3

Open aarifsk opened 5 years ago

aarifsk commented 5 years ago

running result = frac_cov_cls.frac_coverage_classify(mosaic, clean_mask=clean_mask) raises an error, 'DataArray' object has no attribute 'flatten' at ---> 55 mosaic_clean_mask = clean_mask.flatten() in dc_fractional_coverage_classifier.py in frac_coverage_classify(dataset_in, clean_mask, no_data)

dtip commented 4 years ago

Your clean_mask needs to be a numpy array