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

AMAROC-768 add heigh cloud flag and allow NSC #114

Merged
merged 13 commits into from
Apr 10, 2024

Conversation

regDaniel
Copy link
Collaborator

@regDaniel regDaniel commented Apr 8, 2024

DRAFT: Add high clouds Flag

  1. Add a high clouds flag to data in case we discard more hits above MSA than MAX_HITS_OKTA0
  2. Set NSC instead of NCD in case the above flag is True when we create the METAR message.

Checklists:

  • New code includes dedicated tests.
  • New code has been linted.
  • New code follows the project's style.
  • New code is compatible with the 3-Clause BSD license.
  • CHANGELOG has been updated.
  • AUTHORS has been updated.
  • Copyright years in module docstrings have been updated.

@regDaniel regDaniel requested a review from fpavogt as a code owner April 8, 2024 16:25
@regDaniel regDaniel requested a review from loforest April 8, 2024 16:25
Copy link
Member

@fpavogt fpavogt left a comment

Choose a reason for hiding this comment

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

Looks good @regDaniel. I think a small tweak is needed to handle the case when there is a significant layer (or more) in the region between the MSA and the MSA + Delta MSA

src/ampycloud/data.py Show resolved Hide resolved
src/ampycloud/data.py Outdated Show resolved Hide resolved
test/ampycloud/test_data.py Show resolved Hide resolved
@regDaniel
Copy link
Collaborator Author

Looks good @regDaniel. I think a small tweak is needed to handle the case when there is a significant layer (or more) in the region between the MSA and the MSA + Delta MSA

absolutely. good catch, thanks! I'll take your suggestions and will think about how to best implement it.

@regDaniel regDaniel requested a review from fpavogt April 9, 2024 09:26
@regDaniel
Copy link
Collaborator Author

Hi @fpavogt , thanks a lot for your review! I implemented the search for layers in buffer along your suggestions and added a test. Could you double-check if it's fine?

Copy link
Member

@fpavogt fpavogt left a comment

Choose a reason for hiding this comment

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

Looks good to me.

.github/workflows/CI_pylinter.yml Show resolved Hide resolved
Copy link
Collaborator

@loforest loforest left a comment

Choose a reason for hiding this comment

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

I reviewed the code and added some questions to ensure I understand the code (some docstrings might be extended accordingly) and also proposed a more explicit variable name for high_clouds_detected (to be discussed). We should also expand the Section "Scope of ampycloud" to specify that the returned NSC is only according to cloud layer height. To fully determine NSC we also need to check for the absence of convective clouds (CB/TCU) and CAVOK, which shall be done outside ampycloud using other data sources (lightning, weather radar, visibility, etc).

CHANGELOG Outdated Show resolved Hide resolved
src/ampycloud/data.py Outdated Show resolved Hide resolved
src/ampycloud/data.py Outdated Show resolved Hide resolved
src/ampycloud/data.py Show resolved Hide resolved
src/ampycloud/data.py Show resolved Hide resolved
src/ampycloud/data.py Outdated Show resolved Hide resolved
src/ampycloud/data.py Outdated Show resolved Hide resolved
src/ampycloud/data.py Show resolved Hide resolved
src/ampycloud/data.py Outdated Show resolved Hide resolved
@regDaniel regDaniel merged commit c2e5d23 into develop Apr 10, 2024
15 checks passed
@regDaniel regDaniel deleted the feature/AMAROC-768-nsc-flag branch April 10, 2024 13:51
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