picoraster
Small Python library for processing large raster images.
Currently a work in progress.
Example usage
source = AWSLandsat8Source("LC08_L1TP_139045_20170304_20170316_01_T1", band="8")
# Lazily create a band and build a description of processing steps
band = Band(source) \
.and_then(Resize(extents)) \
.and_then(HistogramAdjust()) \
.and_then(Reproject(crs))
# Forces computation
array = band.render_to_array()
band.render_to_file("output.tif")
Installation
Installing GDAL is the most challenging part. Installing directly from PyPI is historically unlikely to work.
First, install numpy:
pip install numpy
Then, choose 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
Running tests
python -m src.tests
Metadata
Release files for picoraster 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| picoraster-0.0.2.tar.gz | 5.0 kB | Without provenance | Details for picoraster-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| picoraster-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for picoraster-0.0.2-py3-none-any.whl |
Total release size: 12.7 kB
Release files / picoraster-0.0.2.tar.gz
| Download URL | picoraster-0.0.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92c61ff4d19bef2bc8f9c837c892d31b3b6d2f2c2b40937ab126c497a6c257da
|
|
BLAKE2b-256 checksum How to use checksums |
d8b29b903a7c510ce8f52dd01063916f78c7e1d42682e496574a0682505e26b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Release files / picoraster-0.0.2-py3-none-any.whl
| Download URL | picoraster-0.0.2-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3eac432fc2f1f46fa3d9b1485cb24e14cfed664d254f6f213c599b2768a20e9b
|
|
BLAKE2b-256 checksum How to use checksums |
9fac5a2745abe54bf50791b1425fdc7cce3402acda220b01352dac60e1c35971
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for picoraster 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.