forked from potree/PotreeConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
28 lines (22 loc) · 845 Bytes
/
run.sh
File metadata and controls
28 lines (22 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -xe
OUTPUTS_DIR=${_tapisExecSystemOutputDir}
WEB_SERVER_DIR=/corral/utexas/BCS24011/ckan/lidar_files
WEB_SERVER_URL=https://ckan.tacc.utexas.edu/lidar_files
if [ -n "${sourcelas}" ]; then
echo "Using value from env"
/home/potree/PotreeConverter -i ${sourcelas} -o ${OUTPUTS_DIR}
else
echo "Using default input"
/home/potree/PotreeConverter -i ${_tapisExecSystemInputDir}/sourcelas -o ${OUTPUTS_DIR}
fi
METADATA_FILE=${OUTPUTS_DIR}/metadata.json
METADATA_URL=${WEB_SERVER_URL}/${_tapisJobName}-${_tapisJobUUID}/metadata.json
SCENE_FILE=${OUTPUTS_DIR}/scene.json
SCENE_URL=${WEB_SERVER_URL}/${_tapisJobName}-${_tapisJobUUID}/scene.json
# Generate the scene file
python3 /tapis/potree_scene_generator.py \
${METADATA_FILE} \
--output-scene-file ${SCENE_FILE} \
--base-url ${METADATA_URL}
echo "Scene URL: ${SCENE_URL}"