PyRasterFrames
PyRasterFrames enables access and processing of geospatial raster data in PySpark DataFrames.
Getting started
The quickest way to get started is to pip install the pyrasterframes package.
pip install pyrasterframes
You can then access a pyspark SparkSession using the local[*] master in your python interpreter as follows.
from pyrasterframes.utils import create_rf_spark_session
spark = create_rf_spark_session()
Then you can read a raster and do some work with it.
from pyrasterframes.rasterfunctions import *
from pyspark.sql.functions import lit
# Read a MODIS surface reflectance granule
df = spark.read.raster('https://modis-pds.s3.amazonaws.com/MCD43A4.006/11/08/2019059/MCD43A4.A2019059.h11v08.006.2019072203257_B02.TIF')
# Add 3 element-wise, show some rows of the dataframe
df.select(rf_local_add(df.tile, lit(3))).show(5, False)
Support
Reach out to us on gitter!
Issue tracking is through github.
Contributing
Community contributions are always welcome. To get started, please review our contribution guidelines, code of conduct, and developer's guide. Reach out to us on gitter so the community can help you get started!
Development environment setup
For best results, we suggest using conda and the conda-forge channel to install the compiled dependencies before installing the packages in setup.py. Assuming you're in the same directory as this file:
conda create -n rasterframes python==3.7
conda install --file ./requirements-condaforge.txt
Then you can install the source dependencies:
pip install -e .
Metadata
Release files for pyrasterframes 0.11.1
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 |
|---|---|---|---|---|
| pyrasterframes-0.11.1.tar.gz | 28.7 kB | Without provenance | Details for pyrasterframes-0.11.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrasterframes-0.11.1-py3-none-any.whl | Python 3 | none | any | Details for pyrasterframes-0.11.1-py3-none-any.whl |
Total release size: 61.0 kB
Release files / pyrasterframes-0.11.1.tar.gz
| Download URL | pyrasterframes-0.11.1.tar.gz |
|---|---|
| Size | 28.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c0387fec8e8a4249c00e108e686a3c4cfe10cbc22ad21cfe8e400551309851a
|
|
BLAKE2b-256 checksum How to use checksums |
63d330fd9f89ed3bb0e9e149da6a681b03d2ff98bc1b4ba786664d80117b7105
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.8.16 Darwin/22.4.0
|
Release files / pyrasterframes-0.11.1-py3-none-any.whl
| Download URL | pyrasterframes-0.11.1-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93668380519e0b6e36f54ece5a3b7ecd496cb3d9b742983ac16b6740f77da13e
|
|
BLAKE2b-256 checksum How to use checksums |
32c647be1a85a6678958e8f83203f1ec3710e35d790ba9188206ccb29dccaa90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.8.16 Darwin/22.4.0
|
Security for pyrasterframes 0.11.1
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.