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

IMCBAR Frequency value ignored for certain Nexrad products #76

Open
mzuranski opened this issue Mar 4, 2022 · 1 comment
Open

IMCBAR Frequency value ignored for certain Nexrad products #76

mzuranski opened this issue Mar 4, 2022 · 1 comment

Comments

@mzuranski
Copy link
Collaborator

The Gempak 7.5.1 documentation states:

Frequency describes the levels to be labeled. If the frequency is
positive, the labels are plotted on the right/top of the color bar.
If it is negative, the labels are plotted on the left/bottom of the
color bar. The default is -1.

The +/- value is still honored for the sake of specifying which side the labels are on. However, the value is ignored for many Nexrad products; the frequency interval is hard-coded into Gempak: gempak/source/gemlib/im/imcbar.f A quick peak at that file starting at line 216 spills the beans:

C* Label Frequency Not Implemented - Label All
C* Special handling for NEXRAD 256-level products

Unhandled products look like this, which is not ideal:
imcbar_left
imcbar_right

#73 includes handling for the new Super-Res products, at least for plotting labels on the left side, but the right side still needs a little love:
image
image

But again, once the products have handling in imcbar.f, it's hard-coded into the software and the passed frequency value is ignored. The only way to adjust the frequency is to edit those values and remake the software, which is also not ideal.

@mzuranski
Copy link
Collaborator Author

Upon further review, values do plot appropriately on the right side... provided they're given enough room:
image

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

No branches or pull requests

1 participant