UAS Manual - Python Script PS125_load_altitude_DJI.py

cml
File
repository_1324.txt (365 bytes)
Edited Text

import PhotoScan

doc = PhotoScan.app.document
chunk = doc.chunk

for camera in chunk.cameras:
if "DJI/RelativeAltitude" in camera.photo.meta.keys() and camera.reference.location:
z = float(camera.photo.meta["DJI/RelativeAltitude"])
camera.reference.location = (camera.reference.location.x, camera.reference.location.y, z)

print("Script finished")

Contributors
Author: Saczuk, Eric
Abstract
Python script for assignment.
Member of
Note
1 ASC file containing Python script; 365 B
Type
Form
Language
Rights
This license enables reusers to distribute, remix, adapt, and build upon the material in any medium or format for noncommercial purposes only, and only so long as attribution is given to the creator. CC BY-NC includes the following elements: BY: credit must be given to the creator. NC: Only noncommercial uses of the work are permitted. https://creativecommons.org/licenses/by-nc/4.0/