Repository navigation
Commit e299a46
fix(raster): write 8-bit bands as bytes only when every value is whole
An 8-bit raster can hold fractions after resampling (a block mean of
1.5). write_all wrote such bands as bytes and truncated them; it now
writes bytes only when every valid value is whole, and floats
otherwise. The mosaic's band-role error no longer says the alpha band
is the last one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 995aaf1 commit e299a46
2 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
1752 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1753 | 1755 | | |
1754 | 1756 | | |
1755 | 1757 | | |
| |||
2069 | 2071 | | |
2070 | 2072 | | |
2071 | 2073 | | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
2072 | 2079 | | |
2073 | 2080 | | |
2074 | 2081 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1376 | 1376 | | |
1377 | 1377 | | |
1378 | 1378 | | |
1379 | | - | |
1380 | | - | |
| 1379 | + | |
| 1380 | + | |
1381 | 1381 | | |
1382 | 1382 | | |
1383 | 1383 | | |
1384 | | - | |
| 1384 | + | |
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
| |||
0 commit comments