Lazy raster band processing
Project description
picoraster
Lazy Python library for raster band manipulation.
Example usage
bands = []
for input in input_list:
band = Raster(input) \
.and_then(Resize(extents)) \
.and_then(HistogramAdjust()) \
.and_then(Reproject(crs))
bands.append(end)
multiband = Merge(bands)
# Forces computation
array = multiband.render_to_array()
multiband.render_to_file("output.tif")
Installation
Installing GDAL is the most challenging part. Installing directly from PyPI is unlikely to work. The best choices are one of the following:
- install with a system package manager
- Ubuntu:
sudo apt install libgdal-dev
- MacOS:
brew install gdal
- Ubuntu:
- install from conda-forge:
conda install -c conda-forge gdal
- compile manually
Afterwards, the correct Python bindings can be installed with
pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
Finally,
pip install picoraster
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
picoraster-0.0.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for picoraster-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ef715121cfbdd7c3cd8c58198006914bbb9ab93be5a549c1d2e044076f45bb1 |
|
MD5 | f4bf6813a3ec0eb3ebd50ccc79d3bf3d |
|
BLAKE2b-256 | 5c03b2f432b063f2df4af34e98361f3a81d6f990881d1d65505c5eabaef209c1 |