GetSpots - find relevant OSIRIS-REx data for assigning values to facets in an OSIRIS-REx map interchange (OBJ) file
GetSpots - find relevant OSIRIS-REx data for assigning values to facets in an OSIRIS-REx map interchange (OBJ) file
GetSpots --spice spicemetakernel --obj objfile --instype instrumenttype --sclk sclkfile --maxdist distance
GetSpots identifies those times, listed in sclkfile, when the boresight of instrumenttype intersects the surface of Bennu less than distance milliradians from the center of individual facets in the OBJ file described in objfile. Needed spice files for this calculation are listed in spicemetakernel.
Mapmakers may wish to assign a value to a facet based on an algorithmic combination of one or more observations that are in the proximity of the facet. In order to do this, they need to understand which observations are candidates for their analysis. Knowing the distance and position angle of the observation relative to the center of the facet is the discriminator for determining which observations are candidates, and GetSpots provides this information.
A simple text file of sclk values (one per line) acts as input to getspots. GetSpots can determine which boresight values corresponding to the sclk values do not exceed the maximum distance criteria for each facet, along with the position angle of the spot, and the fraction of the facet covered by the spot. The position angle is valued from 0 to 359 degrees North being 0 with east being 90 degrees. Spots that do not completely intersect the surface of Bennu are flagged. Any additional information on the input line following the sclk value is echoed to the output unchanged, allowing other data useful in the subsequent analysis to be carried along in the output.
BEGIN sclkvalue [otherdata] sclkvalue [otherdata] . . END
Where:
F1 sclkvalue dist pos frac flag inc ems phs [otherdata] sclkvalue dist pos frac flag inc ems phs [otherdata] .. F2 sclkvalue dist pos frac flag inc ems phs [otherdata] sclkvalue dist pos frac flag inc ems phs [otherdata] F3 F4 .. FN END
Where: