GithubHelp home page GithubHelp logo

rfshed's Introduction

rfshed

A reasonably fast CUDA accelerated viewshed generator. Creates a 12k×12k pixels viewshed image in well under a second on a GTX 1660 GPU. The algorithm used is not perfectly accurate but artifacts are mostly observed in areas of acute sighting angles where vegetation and other factors not well expressed in the DEM may play major role in visibility.

Requirements

Install Go and CUDA to build.

To run it you will have to provide the 3″ ("90m") SRTM .hgt files.

Build

make

Run

LD_LIBRARY_PATH=. ./rfshed

Arguments

-h prints help

-lat latitude (decimal degrees)

-lon longitude (decimal degrees)

-hgtdir path to .hgt files

-ah observer height (meters above terrain)

-bh target/receiver height (meters above terrain)

-cutoff radius (meters)

-z Web Mercator zoom level

-rr factor to simulate refraction by adjusting Earth curvature by the factor specified

-rt degrees Celsius to estimate refraction using a specified temperature at the observation point

-outfile name where to save the resulting png file

All arguments are optional, with none provided a 200km Everest viewshed is generated to out.png.

Result

Viewshed is generated in a Web Mercator projected monochrome png file.

Try online

The same algorithm is used at sauropod.xyz.

rfshed's People

Contributors

mi-v avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.