Giter Site home page Giter Site logo

esri_heightmap's Introduction

ESRI_Heightmap

Convert an ESRI Grid ASCII (*.asc) to a binary headerless TIFF (*.raw) for use as a heightmap.

Installation

Download the repository and Python 3. Then, run python3 setup.py in the directory with the code to install.

Usage

python -m esri_heightmap [-h] [--output_mode {RAW,TIFF,BOTH}]
                              [--directory]
                              path_to_input path_to_output

Process *.asc files into an image heightmap

positional arguments:
  path_to_input         path to *.asc file or directory containing *.asc files
                        on which to run processing
  path_to_output        path to output file without extension

optional arguments:
  -h, --help            show this help message and exit
  --output_mode {RAW,TIFF,BOTH}
                        output file format (default: BOTH)
  --directory           run the process on a directory of *.asc files

Use cases

Our use case is for getting LiDAR data into Unity as a terrain for VR interaction. Add yours here!

esri_heightmap's People

Contributors

liamstaras avatar endes0 avatar

Stargazers

Carlos del Olmo avatar

Forkers

endes0 cmrice13

esri_heightmap's Issues

Deal with variation in NODATA_value

NODATA_value should be able to vary over many files and the code should deal with this. Currently, I don't need this feature, but it may be useful to anyone else in the future.

Create setup.py

Add setup.py and requirements.txt to follow standard Python conventions.

Slow NaN elimination

How I deal with less authoritative data is inefficient: importing and processing the entire set and then performing a cellwise comparison for NaNs. Surely there must be a better way to do this?

Potential for multithreading?

The following image says it all - this could probably be optimized with proper multithreading. Running main program takes a long time and runs on a single core. This screenshot is of the program during the NaN elimination phase.
image
Related to #3

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.