Commit c2a85c8
committed
Address review findings: fix _composite alpha, tighten comment (#3640)
- animated_hillshade.py: _composite had a dead alpha branch (line 120
reassigned base to RGB, so the base.shape[-1]==4 guard on line 121
was always false and output alpha was hard-coded to 255). Rewrite to
keep rgb separate and rebuild base with np.concatenate, matching the
_stack helper used in the notebooks. Also add xrspatial to the
requires line in the docstring.
- pharmacy-deserts.ipynb: sharpen the merge='last' comment to state the
non-overlap assumption (each pixel covered by exactly one polygon)
that makes it equivalent to ds.mean.1 parent 36c26a1 commit c2a85c8
2 files changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
0 commit comments