Problems running rio toa reflectance
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce `rio toa reflectance` with LC82150342018182LGN00 and inspect `reflectance.py` at line 62 and lines 158-159. Check the incoming `bands` value and the operand shapes involved in the broadcasting error; the work is done when the reported problems are resolved and the command runs successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100