BlogDocs

:sparkles: Support reading uint/int/float dtypes(#18)

Merged
Comparing
multi-dtype
(
3cbc6f2
) with
main
(
ebd2a31
)
-1%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
5
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

test_xarray_backend_open_dataarray[cog3pio]
python/tests/test_xarray_backend.py::test_xarray_backend_open_dataarray[cog3pio]
0%
45.8 ms
45.6 ms
test_read_geotiff_local
python/tests/test_io_geotiff.py::test_read_geotiff_local
0%
240.7 µs
241.4 µs
test_read_geotiff_remote
python/tests/test_io_geotiff.py::test_read_geotiff_remote
-1%
8.4 ms
8.4 ms
test_read_geotiff_multi_band
python/tests/test_io_geotiff.py::test_read_geotiff_multi_band
-1%
23.9 ms
24.2 ms
test_xarray_backend_open_dataarray[rasterio]
python/tests/test_xarray_backend.py::test_xarray_backend_open_dataarray[rasterio]
-2%
17.3 ms
17.7 ms

Commits

Click on a commit to change the comparison range
base
main
ebd2a31
-1%
:sparkles: Support reading uint/int/float dtypes Add support on the Rust side for reading u8/u16/u32/u64/i8/i16/i32/i64/f32/f64 dtypes via a num_traits::FromPrimitive bound. Different dtypes can be selected via the turbofish operator e.g. by calling `.ndarray::<u16>()`. Added a unit test to check that reading a uint16 tif file works.
d152e51
2 months ago
by weiji14
0%
:memo: Tick off multi-dtype support in roadmap and update timeline Took longer than expected, but support for reading multiple dtypes finally landed (albeit only in the Rust bindings). Stretched out the timeline in the roadmap further into the future, and mentioning aiocogeo-rs under related crates.
3e737d0
2 months ago
by weiji14
0%
:memo: Document how to set output dtype using turbofish operator Show how the turbofish operator (e.g. `::<f32, _>`) can be used to set the output dtype from the `read_geotiff` function. Mention all supported dtypes in crate-level docs at src/lib.rs.
3cbc6f2
2 months ago
by weiji14
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.