Run the code to fetch and run distance calculations as:
cd VARS_HOME/bin
./gsh ../scripts/groovy/process_cg_measurements cameraHeight alpha beta theta videoArchiveName outputFile
The documentation for the code is:
Script that converts any 'measurement' associations found in your VARS query results
and converts them to distances in the same units as the cameraHeight
Usage:
CanadianGridDistanceApp
Arguments:
cameraHeight: The height of the camera above the seafloor. All area measurements will
be in the same units as cameraHeight (i.e. you should use centimeters
instead of meters)
alpha: The vertical angular field of view in degrees
beta: The horizontal angular field of view in degrees
theta: The tilt of the camera from horizontal in degrees
videoArchiveName: The VideoArchive to process
targetFile: The name of the file to write to
An example line for demonstration:
./gsh ../scripts/groovy/process_cg_measurements 112 33.6 42 39 "Pulse60Grid" Pulse60GridMeasurements.txt