Skip to content

76 cloudy aggregation#83

Open
martin-rdz wants to merge 5 commits into
mainfrom
76-cloudy_aggregation
Open

76 cloudy aggregation#83
martin-rdz wants to merge 5 commits into
mainfrom
76-cloudy_aggregation

Conversation

@martin-rdz

Copy link
Copy Markdown
Collaborator

After some test and feedback by Håvard it should be now ready to merge.

"""combine the cloudFree, depCal, shutterOn and fog masks to obtain valid profiles

"""
self.flagValPrf = self.flagCloudFree & (~self.retrievals_highres['depCalMask']) \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we also want to consider the saturation flag for the cloud free profile or is this not needed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I would shift that to issue #82 and adress it at some later point.
Mostly because is expect some more discussion is needed there.

Comment thread ppcpy/interface/picassoProc.py Outdated
Comment thread ppcpy/interface/picassoProc.py Outdated
Comment on lines +427 to +430
if isinstance(flagVal, np.ndarray):
flagVal = flagVal
elif flagVal and not isinstance(flagVal, np.ndarray):
flagVal = self.flagValPrf

@HavardStridBuholdt HavardStridBuholdt Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would it make sense to save the inputted flagVal when it is an ndarray, ei. data_cube.flagValPrf = flagVal, in case we add some procedure that depends on this variable later in the processing chain?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Changed as suggested

@HavardStridBuholdt

Copy link
Copy Markdown
Collaborator

I have an additional test script for the feature introduced by this pull request. Please have a look at it. If you like it we can include it to the official test scripts.

test_case_cpv_2024-08-21_exclude_cloudy_profiles_example.ipynb

martin-rdz and others added 2 commits July 5, 2026 11:11
Co-authored-by: Håvard Strid Buholdt <143713192+HavardStridBuholdt@users.noreply.github.com>
Apply Håvards suggestion in #83 / #76
@ulysses78

Copy link
Copy Markdown
Collaborator

Hi Havard,
your additional test-script works fine for me :-)
Thanks. From my side it can be merged.

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