DOI-USGS / usgscsm

This repository stores USGS Community Sensor Model (CSM) camera models
Other
26 stars 33 forks source link

Add test for desired precision in usgscsm_cam_test #394

Closed oleg-alexandrov closed 2 years ago

oleg-alexandrov commented 2 years ago

This adds the option --desired-precision to usgscsm_cam_test, and adds a CTX linescan dataset, originally named B17_016219_1978_XN_17N282W.json, which is a good real-world example on which to test distortion issues, such as https://github.com/USGS-Astrogeology/usgscsm/issues/244. (The LRO NAC testcase in the repo does not have distortion problems.)

With this testcase, which I added with name tests/data/ctxLineScan.json (size on disk: 54K), this tool's output is as follows:

cd build; ./usgscsm_cam_test --model ../tests/data/ctxLineScan.json --sample-rate 100 --desired-precision 1e-8

Detected CSM plugin: UsgsAstroPluginCSM Loaded a CSM model of type USGS_ASTRO_LINE_SCANNER_SENSOR_MODEL from ISD file ../tests/data/ctxLineScan.json.

... some stuff omitted ...

Desired precision: 1e-08 Max achieved precision: 0.00313679

So it shows that one can't reach desired precision as mentioned in that issue.