Giter Club home page Giter Club logo

terrain's Introduction

Terrain

A small repo for converting DEM (digital elevation maps) to OBJ files for CNC routing.

see also: http://gis.ess.washington.edu/data/ https://www.ocean.washington.edu/data/pugetsound/datasets/psdem2000/rasters/complete/psdem_2000.zip http://gis.ess.washington.edu/data/raster/thirtymeter/wabil30/index.html http://pugetsoundlidar.org/ http://pugetsoundlidar.ess.washington.edu/lidardata/restricted/be_dem/be_hsd_qq_spn/index.html

PugetSound.dem ncols: 6740, nrows: 7600

./DEMtoOBJ.py PugetSound.dem -subset 0 0 999 999 -zscale .1 -o section00.obj
./DEMtoOBJ.py PugetSound.dem -subset 1000 1000 1999 1999 -zscale .1 -o section11.obj

DEMtoPNG.py PugetSound.dem -o PugetSound.png [-zmode all]
DEMtoPNG.py PugetSound.dem -o PugetSound.Land.png -zmode positive
 # clamp all positive values to 0, then offset all by -zmin.
 # so data goes from 0 (deep) to -zmin (land)
 DEMtoPNG.py PugetSound.dem -o PugetSound.underwater.png -zmode negative
# to manufacture we'd like our obj file to reside in the units of
# our target stock 15"x13"x1" => 381 x 330.2 x 25.4 mm
# if the data is 870x870 = we map 870 to 330 (so the pixelsize is .379mm).
# for zrange we'd like to use 3/4 of the stock depth: 19mm
# input data is in decimeters to 
# zscale: .1 zmax: 1000 => zscale = .1/19,

PNGtoOBJ.py  Bainbridge.underwater.png \
    -pixelsize .379 \
    -zscale .00526 -zmax 19  \
    -o Bainbridge.underwater.obj

terrain's People

Contributors

dbadb avatar

Watchers

James Cloos avatar  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.