Geobricks library to correlate two raster and create statistics and scatter chart.
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
========
```python
from geobricks_raster_correlation.core.raster_correlation_core import create_scatter
raster_path1 = "../test_data/morocco/wheat_actual_biomprod_201010_doukkala.tif"
raster_path2 = "../test_data/morocco/wheat_potential_biomprod_201010_doukkala.tif"
# Number of bins to be applied to the scatter chart
bins = 300
corr = create_scatter(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
========
```python
from geobricks_raster_correlation.core.raster_correlation_core import create_scatter
raster_path1 = "../test_data/morocco/wheat_actual_biomprod_201010_doukkala.tif"
raster_path2 = "../test_data/morocco/wheat_potential_biomprod_201010_doukkala.tif"
# Number of bins to be applied to the scatter chart
bins = 300
corr = create_scatter(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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07e4ff0be3c97436b2a12d9ebfe64fc908306cfc8a4f23bc09a957380a83d27f |
|
MD5 | aed45d14af027d6462bbec80dba84de3 |
|
BLAKE2b-256 | 3fbefc233851e18c461b83f60e39bd271aa43a74c83185df645dc9033dc8c1b8 |