Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for desired precision in usgscsm_cam_test #394

Merged
merged 1 commit into from
May 11, 2022

Conversation

oleg-alexandrov
Copy link
Collaborator

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 #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.

… which is useful for testing distortion issues
@jessemapel jessemapel merged commit b594fd5 into DOI-USGS:dev May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants