-
Notifications
You must be signed in to change notification settings - Fork 192
Description
In reviewing output with @bpurinton and @ShashankBice this morning, we realized that the lat/lon coordinates in the mapproj_match_offsets.txt text file (https://stereopipeline.readthedocs.io/en/latest/tools/bundle_adjust.html#registration-errors-on-the-ground) only have 4-5 decimal places, which offers limited precision (meters to 10s of meters, see https://en.wikipedia.org/wiki/Decimal_degrees#Precision). Other outputs like residuals csv have 7-8 decimal places. The precision for lat/lon coordinates throughout ASP should always be sufficient to preserve cm differences (at least 8).
Also, would it seems like we could combine some of these text files, adding columns to create a larger csv instead of creating separate text files? The issue is that match point order is not consistent across these different files, which complicates integration after the fact. In other words, if specified, just append the mapproj columns to the residuals csv, so we have one-to-one correspondence for each match point, rather than trying to figure this out after the fact.
Regardless, we should consider more self-consistent output text file formats created by bundle_adjust - now we have a mix of csv and txt with variable formatting. The use of these files is relatively limited, and if we have centralized functions to read and plot, impact on users is limited.
Including a header with column names (can use known escape character % or #) would simplify parsing and issues around reading csv files with different sets of columns based on user-specified flags.