# FauxGeo: generate simple geospatial rasters
FauxGeo is a python library that generates simple OSGeo-supported rasters. The primary purpose for this library is to help test geoprocessing functions.


## Features
Available Signal Functions
| Signal Function | RasterFactory Method |
| :------------- | :------------- |
| uniform | `.uniform(val)` |
| ramp | `.ramp(zero_index, slope=1)` |
| saw tooth | `.saw(low, high, period)` |
| triangle | `.triangle(low, high, period)` |
| step | `.step(low, high, period)` |
| random range | `.random(low, high)` |
| random from list | `.random(list)` |
| alternating | `.alternate(val1, val2)` |
## Installation
To install FauxGeo, simply:
```bash
$ pip install fauxgeo
```
## Usage
```python
import numpy as np
from fauxgeo import RasterFactory, Affine
options = {
'affine': Affine.identity(),
'epsg': 4326,
'datatype': np.float32,
'nodata': -9999,
'driver': 'GTIFF',
'shape': (10, 10)
}
factory = RasterFactory(**options)
factory.ramp(0, 10, 5).to_file('path/to/file')
```
## Tests
```bash
$ python setup.py test
```
FauxGeo is a python library that generates simple OSGeo-supported rasters. The primary purpose for this library is to help test geoprocessing functions.


## Features
Available Signal Functions
| Signal Function | RasterFactory Method |
| :------------- | :------------- |
| uniform | `.uniform(val)` |
| ramp | `.ramp(zero_index, slope=1)` |
| saw tooth | `.saw(low, high, period)` |
| triangle | `.triangle(low, high, period)` |
| step | `.step(low, high, period)` |
| random range | `.random(low, high)` |
| random from list | `.random(list)` |
| alternating | `.alternate(val1, val2)` |
## Installation
To install FauxGeo, simply:
```bash
$ pip install fauxgeo
```
## Usage
```python
import numpy as np
from fauxgeo import RasterFactory, Affine
options = {
'affine': Affine.identity(),
'epsg': 4326,
'datatype': np.float32,
'nodata': -9999,
'driver': 'GTIFF',
'shape': (10, 10)
}
factory = RasterFactory(**options)
factory.ramp(0, 10, 5).to_file('path/to/file')
```
## Tests
```bash
$ python setup.py test
```
Metadata
Release files for fauxgeo 0.3.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 | |
|---|---|---|---|
| fauxgeo-0.3.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fauxgeo-0.3.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / fauxgeo-0.3.0.tar.gz
| Download URL | fauxgeo-0.3.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
933fabccdedbc094a09a73f222172d1a9263bd0ca78fe70c8e1c87e21be84758
|
|
BLAKE2b-256 checksum How to use checksums |
663490b40accafe194df1d53acc8b48cb2c152c993ad9853d490a652a225d760
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / fauxgeo-0.3.0-py2.py3-none-any.whl
| Download URL | fauxgeo-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
653bdb452793b76dbc83bd1f8c6e666b51b3795667786676310e0bda6a5fae52
|
|
BLAKE2b-256 checksum How to use checksums |
29d53cfc9eea9cc456a1e5f3026a1099a52bca75fdc80285d1633504120babcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |