PC Rasterize: Rasterize Point Clouds in Parallel
How to use:
import pc_rasterize as pcr
import glob
files = sorted(glob.glob("../data/points/*.laz"))
# Create a GeoBox grid specification with a 100m buffer around data
geobox = pcr.build_geobox(files, resolution=0.50, crs="5070", buffer=100)
# Build a lazy CHM raster
chm = pcr.rasterize(
files,
geobox,
cell_func="max",
# Set custom dask chunk-size
chunksize=(500, 500),
nodata=np.nan,
# Filter out points over 100m
pdal_filters=[
{
"type": "filters.expression",
"expression": "Z < 100"
}
],
)
Saving with default dask scheduling:
# Use rioxarray to save to disk
chm.rio.to_raster("points_chm.tiff", tiled=True)
Saving with dask's more advanced scheduling:
Dask's more advanced 'distributed' scheduling also provides a dashboard at http://localhost:8787/status for viewing progress in your browser.
from dask.distributed import Client, LocalCluster, Lock
with LocalCluster() as cluster, Client(cluster) as client:
chm.rio.to_raster("points_chm.tiff", tiled=True, lock=Lock("rio"))
Metadata
Release files for pc-rasterize 0.2.0
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 |
|---|---|---|---|---|
| pc_rasterize-0.2.0.tar.gz | 11.1 kB | Without provenance | Details for pc_rasterize-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pc_rasterize-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pc_rasterize-0.2.0-py3-none-any.whl |
Total release size: 21.4 kB
Release files / pc_rasterize-0.2.0.tar.gz
| Download URL | pc_rasterize-0.2.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6baa7894d273cad03c48e1ac456d08fb94fb1d50174640e076a69ef945908abd
|
|
BLAKE2b-256 checksum How to use checksums |
f0487a5af76726b4a012e9ed1c7276a8b95864ae66597fb377f299afebf6fec3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / pc_rasterize-0.2.0-py3-none-any.whl
| Download URL | pc_rasterize-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84daa2bd3b1117b87f40d9910cb4ffcbe46d63cf0f38bca2cd0a232bcf20a85d
|
|
BLAKE2b-256 checksum How to use checksums |
d38b6e9eabdbce5c5beef14dd7d2cac3259141036981b8a240506a1cf23ec5dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Security for pc-rasterize 0.2.0
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.