Skip to content

Add cloud optical depth product - #137

Merged
tukiains merged 4 commits into
mainfrom
optical-depth
Sep 10, 2026
Merged

tukiains merged 4 commits into
mainfrom
optical-depth

Conversation

@tukiains

Copy link
Copy Markdown
Contributor

No description provided.

@tukiains
tukiains requested review from siiptuo and a balanced review from Copilot September 10, 2026 08:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Generated metadata has a dangling ancillary-variable reference, invalid parameters are accepted, and shared plotting behavior lacks coverage.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a cloud optical-depth product derived from liquid and ice extinction, with CLI, plotting, metadata, documentation, and tests.

Changes:

  • Implements extinction, optical-depth, uncertainty, and retrieval-status calculations.
  • Exposes generation through the API and CLI.
  • Adds plotting metadata and logarithmic 1-D plotting support.
File summaries
File Description
cloudnetpy/products/optical_depth.py Implements the new product.
cloudnetpy/products/__init__.py Exports the generator.
cloudnetpy/plotting/plotting.py Adds logarithmic 1-D plotting.
cloudnetpy/plotting/plot_meta.py Defines product plotting metadata.
cloudnetpy/output.py Adds product identifiers and references.
cloudnetpy/cli.py Supports hyphenated generator names.
docs/source/api.rst Documents the public generator.
tests/unit/test_optical_depth.py Tests product calculations and output.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 5
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread cloudnetpy/output.py Outdated
Comment thread cloudnetpy/products/optical_depth.py Outdated
Comment thread cloudnetpy/products/cod.py
Comment on lines +907 to +908
if self._is_log:
self._mask_non_positive()
Comment thread cloudnetpy/products/optical_depth.py Outdated
@tukiains
tukiains merged commit edfd2ff into main Sep 10, 2026
14 checks passed
@tukiains
tukiains deleted the optical-depth branch September 10, 2026 11:37
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.

3 participants