Git Product home page Git Product logo

pysplat's Introduction

PySplat

Doing RF calculations using python and SPLAT

This project aims for a specific usecase, means calculation of signal propagation maps which can then be used as overlay on online maps, and doing some specific processing on those generated tiles.

This means we call SPLAT in a specific way to return the results as georeferenced image. This image the can be split into tiles which are usable as overlay tiles for libraries like Leaflet. Those tiles can furthermore be processed by merging multiple of those maps into a single one. Using those techniques allows us to create maps showing the overal coverage of radio transmitters with as many TX-sites as we want (without beeing limited by SPLAT).

Features

  • Calculation of specific SPLAT-Maps
  • Split SPLAT-Maps into Tiles
  • Merging of those Tiles into a single one

Dependencies

  • splat

python dependencies located in ```requirements.txt`

Example usage

Calculate basic RF map

(currently, you have to download and preprocess the required srtm files manually)

./PySplat/pysplat.py example/qth/OE5XGL.qth --out ./example/html/base --srtm ./path/to/srtm/folder

Split tiles

./PySplat/pysplat_split.py ./example/html/base/OE5XGL.ppm ./example/html/rendered/OE5XGL -z 6-12
./PySplat/pysplat_downsample.py ./example/html/rendered/OE5XGL 6 -z 0-5

Please note, there is currently some bug concerning tiles of zoom <=4 (based on my tests), which means the tile are located at the wrong latitude. As temporary fix I wrote the tool python_downsample which simply is able to downsample tiles (merge them and return the next lower zoom level). It's not pretty efficient yet, so it should only be used to create low zoom levels at the moment

Now we can open the leaflet map located in ./example/html/map.html and check out our new rendered RF map overlay.

Merge multiple tiles

./PySplat/pysplat_merge.py ./example/html/rendered/OE5*/ ./example/html/rendered_merged/OE5xxx --gpu

Please note, using the --gpu flag activates the OpenCL implementation, which is highly recommended. Even using OpenCL over CPU is more than 10 times faster compared to the native python implementation.

pysplat's People

Contributors

pointhi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

denny-hwang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.