Skip to content

Instantly share code, notes, and snippets.

@MBunel
Last active February 14, 2023 14:58
Show Gist options
  • Save MBunel/6bdeb76603b5db012bcca9aff813acb9 to your computer and use it in GitHub Desktop.
Save MBunel/6bdeb76603b5db012bcca9aff813acb9 to your computer and use it in GitHub Desktop.
Example of simple parallel execution of a pdal pipeline on remote hosts with gnu parallel
parallel \
# Database of results metadata
--sqlandworker sqlite3:///out.sqlite/output \
# Url of host
--sshlogin host_1,host_2,: \
# Transfer of pdal pipeline on hosts
--tf my_pipeline_file.json \
# Transfer las files to remote hosts, return the results
--tf {} --return {.}.tif --cleanup \
# pdal command
"pdal pipeline -i my_pipeline_file.json --readers.las.filename={} --writers.gdal.filename={.}.tif" ::: *.las
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment