asp-plot 0.5.2__tar.gz → 0.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {asp_plot-0.5.2 → asp_plot-0.5.3}/PKG-INFO +1 -1
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/csm_camera.py +27 -24
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot.egg-info/PKG-INFO +1 -1
- {asp_plot-0.5.2 → asp_plot-0.5.3}/pyproject.toml +1 -1
- {asp_plot-0.5.2 → asp_plot-0.5.3}/setup.py +1 -1
- {asp_plot-0.5.2 → asp_plot-0.5.3}/.flake8 +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/.github/workflows/run-tests.yml +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/.gitignore +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/.pre-commit-config.yaml +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/LICENSE +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/README.md +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/__init__.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/altimetry.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/bundle_adjust.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/cli/__init__.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/cli/asp_plot.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/cli/csm_camera_plot.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/processing_parameters.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/scenes.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/stereo.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/stereopair_metadata_parser.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot/utils.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot.egg-info/SOURCES.txt +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot.egg-info/dependency_links.txt +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot.egg-info/entry_points.txt +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/asp_plot.egg-info/top_level.txt +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/environment.yml +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/notebooks/bundle_adjust_plots.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/notebooks/icesat2_plots.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/notebooks/processing_parameters.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/notebooks/scene_plots.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/notebooks/stereo_plots.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/asp_plot_util.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/bundle_adjust_plots.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/bundle_adjust_plots_BP_tmp.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/corr_and_dem_plots.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/corr_and_dem_plots_DS.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/disparity_plot.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/gallery.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/gen_asp_extras.sh +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/make_dem_stack.sh +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/plot_disparity.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/seaice_correction.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/original_code/stack_plots.ipynb +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/setup.cfg +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/__init__.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_altimetry.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_bundle_adjust.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_csm_camera.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/10300100D0772D00.r100.xml +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/10300100D12D7400.r100.xml +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba/ba-final_residuals_pointmap-diff.csv +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba/ba-final_residuals_pointmap.csv +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba/ba-initial_residuals_pointmap-diff.csv +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba/ba-initial_residuals_pointmap.csv +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba/ba-mapproj_match_offsets.txt +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba/ba-triangulation_uncertainty.txt +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba/log-bundle_adjust.txt +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/1040010074793300.adjust +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/1040010074793300.adjusted_state.json +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/1040010074793300.json +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/1040010074793300.xml +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/1040010075633C00.adjust +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/1040010075633C00.adjusted_state.json +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/1040010075633C00.json +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/1040010075633C00.xml +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/linescan_to_csm.sh +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/icesat_data/atl06sr_defaults_filtered.csv +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/icesat_data/atl06sr_defaults_filtered.parquet +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/jitter/uyuni/csm-104001001427B900.r100.adjusted_state.json +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/jitter/uyuni/csm-1040010014761800.r100.adjusted_state.json +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/jitter/uyuni/jitter_correction_uyuni.png +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/jitter/uyuni/jitter_solved_run-csm-104001001427B900.r100.adjusted_state.json +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/jitter/uyuni/jitter_solved_run-csm-1040010014761800.r100.adjusted_state.json +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ref_dem.tif +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right-D.tif +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right-D_sub.tif +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right-L.tif +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right-L__R.csv +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right-L__R.match +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right-L_sub.tif +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right-R_sub.tif +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right_1m-DEM.tif +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right_1m-DEM_ref_dem_diff.tif +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right_1m-IntersectionErr.tif +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/log-point2dem.txt +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_imports.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_processing_parameters.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_scenes.py +0 -0
- {asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_stereo.py +0 -0
|
@@ -304,17 +304,25 @@ def csm_camera_summary_plot(
|
|
|
304
304
|
|
|
305
305
|
# Trim the beginning and end of the geodataframes
|
|
306
306
|
if trim:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
307
|
+
# When position changes are all zero, the trimming will fail
|
|
308
|
+
# https://github.com/uw-cryo/asp_plot/issues/54
|
|
309
|
+
if np.sum(gdf_cam1.position_diff_magnitude > 0) == 0:
|
|
310
|
+
print(
|
|
311
|
+
"\nWarning: No data to trim from the beginning and end of the camera files. Position changes are all zero.\n"
|
|
312
|
+
)
|
|
313
|
+
trim = False
|
|
314
|
+
else:
|
|
315
|
+
gdf_cam1 = trim_gdf(
|
|
316
|
+
gdf_cam1,
|
|
315
317
|
near_zero_tolerance=near_zero_tolerance,
|
|
316
318
|
trim_percentage=trim_percentage,
|
|
317
319
|
)
|
|
320
|
+
if cam2_list:
|
|
321
|
+
gdf_cam2 = trim_gdf(
|
|
322
|
+
gdf_cam2,
|
|
323
|
+
near_zero_tolerance=near_zero_tolerance,
|
|
324
|
+
trim_percentage=trim_percentage,
|
|
325
|
+
)
|
|
318
326
|
|
|
319
327
|
# Calculate colorbar ranges
|
|
320
328
|
position_values = gdf_cam1.position_diff_magnitude[
|
|
@@ -323,26 +331,21 @@ def csm_camera_summary_plot(
|
|
|
323
331
|
angular_values = gdf_cam1.angular_diff_magnitude[
|
|
324
332
|
gdf_cam1.angular_diff_magnitude > 0
|
|
325
333
|
]
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
angular_values, [0, upper_magnitude_percentile]
|
|
331
|
-
)
|
|
332
|
-
|
|
333
|
-
if cam2_list:
|
|
334
|
-
position_values = gdf_cam2.position_diff_magnitude[
|
|
335
|
-
gdf_cam2.position_diff_magnitude > 0
|
|
336
|
-
]
|
|
337
|
-
angular_values = gdf_cam2.angular_diff_magnitude[
|
|
338
|
-
gdf_cam2.angular_diff_magnitude > 0
|
|
339
|
-
]
|
|
340
|
-
cam2_position_vmin, cam2_position_vmax = np.percentile(
|
|
334
|
+
# When position or angular changes are all zero, the percentile calculation will fail
|
|
335
|
+
# https://github.com/uw-cryo/asp_plot/issues/54
|
|
336
|
+
try:
|
|
337
|
+
cam1_position_vmin, cam1_position_vmax = np.percentile(
|
|
341
338
|
position_values, [0, upper_magnitude_percentile]
|
|
342
339
|
)
|
|
343
|
-
|
|
340
|
+
except IndexError:
|
|
341
|
+
cam1_position_vmin, cam1_position_vmax = 0, 0
|
|
342
|
+
|
|
343
|
+
try:
|
|
344
|
+
cam1_angular_vmin, cam1_angular_vmax = np.percentile(
|
|
344
345
|
angular_values, [0, upper_magnitude_percentile]
|
|
345
346
|
)
|
|
347
|
+
except IndexError:
|
|
348
|
+
cam1_angular_vmin, cam1_angular_vmax = 0, 0
|
|
346
349
|
|
|
347
350
|
if upper_magnitude_percentile == 100:
|
|
348
351
|
extend = "neither"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/1040010074793300.adjusted_state.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/ba_cams/1040010075633C00.adjusted_state.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/icesat_data/atl06sr_defaults_filtered.parquet
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asp_plot-0.5.2 → asp_plot-0.5.3}/tests/test_data/stereo/date_time_left_right_1m-IntersectionErr.tif
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|