This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Scott and Steve, I had a question regarding the weather codes that the dcmetr decoder was obtaining for MIFG and BR. The mtgemp.f routine calls PT_WNMT to encode MIFG as 9, and BR as 31. However, using sflist to print out the WTHR produces the interpretation of GF for the metar code BR. And F for MIFG. Looking at PT_WCOD, 9 is decoded as F and 31 is decoded as GF. So, it appears that the PT_WNMT matrix needs to be modified to reflect this. Steve Eg ptwmnt.f: DATA wpart / 'BR', 'DS', 'DU', 'DZ', 'FC', 'FG', <<----- + 'FU', 'GR', 'GS', 'HZ', 'IC', 'PL', + 'PO', 'RA', 'SA', 'SG', 'SN', 'SQ', + 'SS', 'TS', 'UP', 'VA', + '+DS', '-DZ', '+DZ', '+FC', '-GS', + '+GS', '-PL', '+PL', '-RA', '+RA', + '-SG', '+SG', '-SN', '+SN', '+SS', + 'BCFG', 'BLDU', 'BLPY', 'BLSA', 'BLSN', + 'DRDU', 'DRSA', 'DRSN', 'FZDZ', 'FZFG', + 'FZRA', 'MIFG', 'PRFG', 'SHGR', 'SHGS', <<---- + 'SHPL', 'SHRA', 'SHSN', 'TSRA', + '+BLDU', '+BLSA', '+BLSN', '-FZDZ', + '+FZDZ', '+FZFG', '-FZRA', '+FZRA', + '-SHGS', '+SHGS', '-SHPL', '+SHPL', + '-SHRA', '+SHRA', '-SHSN', '+SHSN', + '-TSRA', '+TSRA' / DATA jpnum / 9, 33, 8, 2, -2, 9, <<-- change col1 from 31 to 9 + 7, 4, 25, 6, 36, 23, + 40, 1, 35, 24, 3, 10, + 35, 5, 41, 11, + 68, 17, 18, -1, 61, + 62, 57, 58, 13, 14, + 59, 60, 20, 21, 69, + 9, 33, 34, 35, 32, + 33, 35, 32, 19, 30, + 15, 31, 9, 27, 67, <<-- change col 2 from 9 to 31 + 63, 16, 22, 66, + 68, 69, 70, 53, + 54, 30, 49, 50, + 67, 67, 75, 76, + 51, 52, 55, 56, + 77, 78 / Steve Chiswell Unidata User Support