Skip to content

Make Quick Look plots#96

Merged
MBARIMike merged 20 commits intombari-org:mainfrom
MBARIMike:main
Dec 15, 2025
Merged

Make Quick Look plots#96
MBARIMike merged 20 commits intombari-org:mainfrom
MBARIMike:main

Conversation

@MBARIMike
Copy link
Contributor

As part of create_products.py we need to make quick look plots to help us evaluate the processing. Initially, we need to replicate the Dorado section plot creation done by the legacy Matlab code. A generic solution is needed for i2map and LRAUV log files. They are not always sections. They have some common, but also different variables.

- Add MAX_LONG_NAME_LENGTH constant (40 chars) to control when variable
  names are used instead of long_name attributes in colorbar labels
- Update x-axis labels to "Distance along track (km)" for clarity
- Increase bottom margins from 0.03 to 0.06 to ensure x-axis labels
  are fully visible in both 2-column and biolume plots
- Add variable_colormap_lookup dict for fallback colormap selection
  when standard_name attribute is not available
- Add _get_colormap_name() helper method that tries standard_name
  first, then matches variable name patterns, then defaults to 'cividis'
- Simplify colormap selection logic by using the new helper method

These changes improve plot readability and make colormap selection
more robust for variables without standard_name attributes.
MacOS assumes installed via mac ports.
@MBARIMike
Copy link
Contributor Author

Making some progress with dorado Quick Look 2column plot:
dorado_2022 201 00_1S_2column

@MBARIMike MBARIMike merged commit 9b3e6ba into mbari-org:main Dec 15, 2025
2 checks passed
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.

1 participant