ViewingGeometryPerFacet outputs similar data to GetSpots, but also includes lat/lon of each facet center. The inputs and outputs are formatted different.

/!\ ViewingGeometryPerFacet requires an obj file.

Example Input:

eval_tools/altwg-2020.08.13-macosx-x64/bin/ViewingGeometryPerFacet -date 2018 Nov 27 09:06:17 -obj shape-apV24-512.obj -observer OSIRIS-REX -output VGP_output -spice spoc-jweirich-2018-12-05T17_18_14.888Z_modified.mk -target BENNU

Help: ALTWG Tools version 76219 (built on 2020-Aug-13)

usage: ViewingGeometryPerFacet [options]

-date <arg> Required. Observation date. Format can be anything readable by the SPICE str2et method.

-frame <arg> Shape model reference frame. Default is IAU_{target}.

-logFile <arg> If present, save screen output to log file.

-logLevel <arg> If present, print messages above selected priority. Valid values are ALL, OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, or FINEST. Default is INFO.

-obj <arg> Required. Shape model for target body.

-observer <arg> Required. SPICE name of observer.

-output <arg> Output filename. Default is to print to console.

-spice <arg> SPICE kernel(s) to load. Multiple kernels may be specified separated by whitespace.

-target <arg> Required. SPICE name of target.

This program calculates the viewing geometry for a shape model at each facet visible from the observer.

If the image does not cover a facet, a line for that facet is not printed.