rio-toa icon indicating copy to clipboard operation
rio-toa copied to clipboard

Problems running rio toa reflectance

Open vascobnunes opened this issue 7 years ago • 1 comments

I've been trying to run rio toa reflectance on LC82150342018182LGN00 but i got the following problems:

1 - lines 158 and 159 on reflectance.py - the list coming in 'bands' is of int values, but the command bands.remove('10') is expecting strings. I converted bands to strings which solved the issue. 2 - line 62 in reflectance.py - rf = ((MR * img.astype(np.float32)) + AR) / np.sin(np.deg2rad(E)) - I'm getting: "ValueError: operands could not be broadcast together with shapes (8,) (1,7681,10)" - I don't know how to solve this.

Can you help, please?

vascobnunes avatar Dec 07 '18 17:12 vascobnunes

Did you ever solve this error? I am having problems running the reflectance as well, keep getting: UnboundLocalError: local variable 'src_nodata' referenced before assignment

which is coming from the reflectance.py

domierosina avatar Feb 21 '22 00:02 domierosina