Code Monkey home page Code Monkey logo

dsm_dtm_chm's Introduction

Calculate DSM and DEM rasters from 3D point clouds

Small program that uses pdal in python to convert 3D point clouds to dsm and dem raster files with the same mission boundaries and row/column count.

Installation

Download and save in a project directory the files calculate_dsm_dem.py, ground_filter.json, get_missionbounds.json and requirements_pdal_env.txt. Important: all files need to be in the same directory.

Package requirements for calculate_dsm_dem.py are listed in the requirements_pdal_env.txt file. The easiest way to run calculate_dsm_dem.py is to first create a new python environment using the requirements_pdal_env.txt file. To create a new environment navigate to the directory containing the requirements_pdal_env.txt and use either conda or virtual envrionment and pip:

  1. conda create --name new_env_name --file requirements_pdal_env.txt, or
  2. create and switch to a new virtual environment, then do pip install -r requirements_pdal_env.txt

Usage

In the Anaconda prompt, navigate to the directory containing calculate_dsm_dem.py and activate the new envrionment (e.g. using conda activate new_env_name), then execute the program with: python calculate_dsm_dem.py

The program expects to find the following files and folder structure in the active working directory:
\inputs
\outputs_dsm
\outputs_dem
ground_filter.json
get_missionbounds.json

All 3D point cloud files need to be in format .las and stored in the inputs folder. If the program can't find any .las files in inputs or the inputs folder itself doesn't exist, it will raise an error. If the outputs folders don't exists they will be automatically created by the program.

When executed, calculate_dsm_dem.py will iterate through all .las files stored in \inputs and calculate dsm and dem rasters for each .las file which are then stored in the outpus folders. Several parameters can be modified inside the .py file to optimize the dsm and dem calculation (a parameter list will soon be added to the README.txt)

dsm_dtm_chm's People

Contributors

mbelkebrea avatar

Stargazers

fan 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.