Plotting flag variables #471
maxwelllevin
started this conversation in
Ideas
Replies: 4 comments 1 reply
-
|
@maxwellevin this is a great idea and I'm wondering if we can fit it in with the existing plotting with some discrete shading keywords. I'm going to create an issue from this and add it to the list. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@maxwellevin what datastream did you use for your example plot? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I've created PR #480 for this feature request |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
Hi act-atmos team,
I'm working with some ARM data that has a state indicator variable I want to plot. In my case I am working with there is a
cloud_phasevariable which looks something like this:So a value of 0 indicates clear sky, 1 indicates liquid, 2 indicates ice, etc. Note this is a bit different than QC variables because the value of
cloud_phasewill always match one of theflag_valuesor_FillValueexactly, whereas qc variables can match multipleflag_masks/ bits to indicate a combination of different states. In other words the different states of thecloud_phasevariable are mutually exclusive.I want the plot to look something like this:

To the best of my knowledge,
actdoesn't quite do this yet (though it does do superbly with plotting qc variables). It would certainly be beneficial to me if theact.plottingmodule could be expanded to provide a method to plot mutually exclusive state indicator variables, so I wanted to float the idea to you all and see if you think it's worthwhile.Reference
ARM Standards §6.5 discusses how ARM handles exclusive and inclusive state indicator variables:
https://www.arm.gov/publications/programdocs/doe-sc-arm-15-004.pdf
The CF Conventions also discuss variable flags here:
https://cfconventions.org/cf-conventions/cf-conventions.html#flags
Beta Was this translation helpful? Give feedback.
All reactions