ACOLITE 20220222.0: Landsat Collection 1 error with glint correction IndexError: too many indices for array

Technical questions about ACOLITE
Post Reply
quinten
Posts: 1022
Joined: Tue Mar 03, 2015 8:13 am

ACOLITE 20220222.0: Landsat Collection 1 error with glint correction IndexError: too many indices for array

Post by quinten »

Hi all

When processing Landsat Collection 1 data with the 20220222.0 binary release and dsf_residual_glint_reflectance=True, an error occurs with the message "IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed"

This error is related to the 1 element scene centre geometry from the Collection 1 data being internally represented as a 1 element, 2d array. This has been fixed in the GitHub code, and will be integrated in the next binary release (not yet planned).

In the meantime you can work around this issue with the current release by (1) using Collection 2 data, or (2) setting dsf_residual_glint_correction_method=alternative

Hope this helps!

Quinten
Post Reply