Skip to main content
# 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.

![PyPI](https://badge.fury.io/py/fauxgeo.png)
![Build](https://travis-ci.org/wbierbower/fauxgeo.svg?branch=master)

## 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)

Source distribution for fauxgeo 0.3.0
File Size Uploaded
fauxgeo-0.3.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fauxgeo 0.3.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.5

1 release file

0.1.4

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page