Geobricks library to correlate two raster and create statistics and scatter charts.
Project description
Geobricks Raster Correlation
====================
The Geobricks Raster Correlation library provides an easy way correlate two raster of the same size, returning a json containing statistical outputs and frequencies information to be used directly with Highcharts JS library.
# Installation
The library is distributed through PyPi and can be installed by typing the following command in the console:
```
pip install GeobricksRasterCorrelation
```
# Examples
## Library usage
```python
from geobricks_raster_correlation.core.raster_correlation_core import get_correlation
raster_path1 = "path_to_raster1.tif"
raster_path2 = "path_to_raster2.tif"
# Number of bins to be applied to the scatter chart
bins = 300
corr = get_correlation(raster_path1, raster_path2, bins)
print corr
```
The returned json contains:
* in corr['stats'] the statistics: slope, p_value, std_err, intercept, r_value
* in corr['series'] there are the series. The series output can be used directly as an input with Highcharts.
====================
The Geobricks Raster Correlation library provides an easy way correlate two raster of the same size, returning a json containing statistical outputs and frequencies information to be used directly with Highcharts JS library.
# Installation
The library is distributed through PyPi and can be installed by typing the following command in the console:
```
pip install GeobricksRasterCorrelation
```
# Examples
## Library usage
```python
from geobricks_raster_correlation.core.raster_correlation_core import get_correlation
raster_path1 = "path_to_raster1.tif"
raster_path2 = "path_to_raster2.tif"
# Number of bins to be applied to the scatter chart
bins = 300
corr = get_correlation(raster_path1, raster_path2, bins)
print corr
```
The returned json contains:
* in corr['stats'] the statistics: slope, p_value, std_err, intercept, r_value
* in corr['series'] there are the series. The series output can be used directly as an input with Highcharts.
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
Close
Hashes for GeobricksRasterCorrelation-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0209f2b85adf4d8074026640b92b0667d87c520e0586ee08981b6c21ce9c9bd8 |
|
MD5 | d99e6d4dddefd23db6bbd1ee7330dff3 |
|
BLAKE2b-256 | 4481408a76fe4b91c20c5e0114c6ff47772b3c850d9aa348b43a450e2292ed97 |