Unidata / gempak

Analysis and product generation for meteorological data.
BSD 3-Clause "New" or "Revised" License
69 stars 30 forks source link

IMCBAR Frequency value ignored for certain Nexrad products #76

Open mzuranski opened 2 years ago

mzuranski commented 2 years ago

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 commented 2 years ago

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