Notebooks for FOSS4G Boston 2017 workshop called Processing lidar and UAV point clouds in GRASS GIS available at:
Get the latest version:
wget "https://grasswiki.osgeo.org/wiki/Processing_lidar_and_UAV_point_clouds_in_GRASS_GIS_(workshop_at_FOSS4G_Boston_2017)#Optimizations.2C_troubleshooting_and_limitations"
Remove non-ASCII characters (not important at this point):
iconv -c -f utf-8 -t ascii workshop.html > workshop_ascii.html
mv workshop_ascii.html workshop.html
Manually remove header and footer and replace all
<pre>some code...
with
<pre><code>
some code...
Conversion tool from https://github.com/wenzeslaus/gdoc2py:
./gdoc2nb.py --gisdbase /home/jovyan/grassdata/ --location workshop --mapset PERMANENT --lang python workshop.html notebooks/workshop_python.ipynb
./gdoc2nb.py --gisdbase /home/jovyan/grassdata/ --location workshop --mapset PERMANENT --lang bash workshop.html notebooks/workshop_bash.ipynb
jupyter notebook notebooks
Build it to have it locally:
docker build -t grass-point-cloud-workshop .
Run it to test it:
docker run -it --rm -p 8888:8888 grass-point-cloud-workshop
Generate tokens:
export TOKEN=$( head -c 30 /dev/urandom | xxd -p )
export USER_TOKEN=$( head -c 30 /dev/urandom | xxd -p )
echo $TOKEN
echo $USER_TOKEN
Run the proxy:
docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN --name=proxy \
jupyter/configurable-http-proxy --default-target http://127.0.0.1:9999
Run tmpnb:
docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN --name=tmpnb \
-v /var/run/docker.sock:/docker.sock jupyter/tmpnb \
python orchestrate.py --log-to-stderr --logging=debug \
--use-tokens=False --image='grass-gis-notebook' \
--command="start-notebook.sh \"--NotebookApp.base_url={base_path} --ip=0.0.0.0 --port {port} --NotebookApp.trust_xheaders=True --NotebookApp.token=$USER_TOKEN\""