Skip to content

Commit

Permalink
Merge pull request #98 from akrherz/gh97_nawips7.15.0
Browse files Browse the repository at this point in the history
Merge NCEP NAWIPS 7.15.0
  • Loading branch information
akrherz authored May 25, 2022
2 parents 879f898 + 17dcbec commit 80ba576
Show file tree
Hide file tree
Showing 93 changed files with 671,472 additions and 655,610 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
<!-- markdownlint-configure-file {"MD024": { "siblings_only": true } } -->
# Unidata Community GEMPAK Change Log

## 7.15.0 (25 May 2022)

This release merges upstream NCEP NAWIPS 7.15.0, whose CHANGELOG includes:

- Bug fixes and other issue resolutions.
- Cumulative revisions to NAWIPS data tables to support maps/bounds,
surface stations, tropical, and other routine periodic updates.
- Integration of compiler, and certain changes required to support the
WCOSS supercomputer and RHEL 8 Operating System transition projects.
- Updates to Volcanic Ash Advisory user interface to support the NESDIS
Satellite Analysis Branch.

This release also includes the following GEMPAK Community changes:

- More dynamic setting of `NAWIPS` environment variable on bash (#85).
- Update MRMS Grib Tables to v12.1 (#89).
- Continued cleanup of bad previous merges that overwrote Unidata
local table modifications.

## 7.14.0.1 (13 March 2022)

This release signifies the desire for the community to make releases at a faster
Expand Down
2 changes: 1 addition & 1 deletion build/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: gempak
Version: 7.14.0.1
Version: 7.15.0
Maintainer: Daryl Herzmann
Architecture: all
Description: Unidata GEMPAK Distribution
Expand Down
2 changes: 1 addition & 1 deletion build/Installer.gempak/extlibs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%define __prelink_undo_cmd %{nil}
%define gem_home /home/gempak/GEMPAK7
%define prefix /home/gempak
%define version 7.14.0.1
%define version 7.15.0
Name: gempak-extlibs
Summary: Unidata Community GEMPAK
Version: %{version}
Expand Down
2 changes: 1 addition & 1 deletion build/Installer.gempak/gempak.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
%define __prelink_undo_cmd %{nil}
%define gem_home /home/gempak/GEMPAK7
%define prefix /home/gempak
%define version 7.14.0.1
%define version 7.15.0
Name: gempak
Summary: Unidata Community GEMPAK
Version: %{version}
Expand Down
2 changes: 1 addition & 1 deletion build/docker/Dockerfile.centos
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN yum clean all
RUN yum install openmotif libX11 libXt libXext libXp libXft libXtst xorg-x11-xbitmaps csh libgfortran which python-pip git -y

# Latest RPM for CentOS 7
RUN rpm -ivh https://www.unidata.ucar.edu/downloads/gempak/latest/gempak-7.14.0.1-1.el7.centos.x86_64.rpm
RUN rpm -ivh https://www.unidata.ucar.edu/downloads/gempak/latest/gempak-7.15.0-1.el7.centos.x86_64.rpm

# Python AWIPS Data Acess Framework
RUN pip install six shapely numpy
Expand Down
4 changes: 2 additions & 2 deletions build/docker/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ RUN apt-get install wget python-pip python-dev build-essential -y
RUN pip install --upgrade pip

# Latest source code
RUN wget https://www.unidata.ucar.edu/downloads/gempak/latest/gempak-7.14.0.1.deb
RUN dpkg -i gempak-7.14.0.1.deb
RUN wget https://www.unidata.ucar.edu/downloads/gempak/latest/gempak-7.15.0.deb
RUN dpkg -i gempak-7.15.0.deb

# Python AWIPS Data Acess Framework
RUN pip install six shapely numpy
Expand Down
2 changes: 1 addition & 1 deletion build/gempak-devel/Dockerfile.centos6
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ RUN yum install -y \
python-devel

# Bootstrap install extlibs...
RUN rpm -ivh https://www.unidata.ucar.edu/downloads/gempak/latest/gempak-extlibs-7.14.0.1-1.el6.x86_64.rpm
RUN rpm -ivh https://www.unidata.ucar.edu/downloads/gempak/latest/gempak-extlibs-7.15.0-1.el6.x86_64.rpm
2 changes: 1 addition & 1 deletion build/gempak-devel/Dockerfile.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ RUN yum install -y \
python-devel

# Bootstrap install extlibs...
RUN rpm -ivh https://www.unidata.ucar.edu/downloads/gempak/latest/gempak-extlibs-7.14.0.1-1.el7.centos.x86_64.rpm
RUN rpm -ivh https://www.unidata.ucar.edu/downloads/gempak/latest/gempak-extlibs-7.15.0-1.el7.centos.x86_64.rpm
2 changes: 1 addition & 1 deletion build/gempak-devel/Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ RUN yum install -y \
python-devel

# Bootstrap install extlibs...
RUN rpm -ivh https://www.unidata.ucar.edu/downloads/gempak/latest/gempak-extlibs-7.14.0.1-1.fc26.x86_64.rpm
RUN rpm -ivh https://www.unidata.ucar.edu/downloads/gempak/latest/gempak-extlibs-7.15.0-1.fc26.x86_64.rpm
3 changes: 2 additions & 1 deletion gempak/include/BRIDGE.PRM
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ C** *
C* Log: *
C* S. Jacobs/NMC 7/95 *
C* S. Jacobs/NCEP 12/02 Increased DCMXBF from 16kb to 100kb *
C* B. Hebbard/NCEP 9/21 Increased DCMXBF from 100kB to 5MB *
C************************************************************************
INTEGER DCDFTM, DCMXLN, DCMXBF, EOD,
+ EBNMEM, EBREAD, EBTMOUT, EBFULL, EBEMPT
Expand All @@ -18,7 +19,7 @@ C!
PARAMETER ( DCMXLN = 132 )
C! Max char length
C!
PARAMETER ( DCMXBF = 102400 )
PARAMETER ( DCMXBF = 5000000 )
C! Max bulletin length
C!
PARAMETER ( EOD = -2 )
Expand Down
3 changes: 2 additions & 1 deletion gempak/include/bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
* S. Jacobs/NMC 7/95 *
* A. Hardy/GSC 1/01 Added proto_bridge.h *
* S. Jacobs/NCEP 12/02 Increased DCMXBF from 16kb to 100kb *
* B. Hebbard/NCEP 9/21 Increased DCMXBF from 100kB to 5MB *
***********************************************************************/

#define DCDFTM ( 600 ) /* Default timeout */

#define DCMXLN ( 133 ) /* Max length for a character string */

#define DCMXBF ( 102400 ) /* Max length of the data buffer */
#define DCMXBF ( 5000000 ) /* Max length of the data buffer */

#define EOD ( 0xfe ) /* End of data marker */

Expand Down
Binary file modified gempak/maps/hicnus.nws
Binary file not shown.
Binary file modified gempak/maps/hicwa.nws
Binary file not shown.
Binary file modified gempak/maps/hifzus.nws
Binary file not shown.
Binary file modified gempak/maps/himouo.nws
Binary file not shown.
Binary file modified gempak/maps/himzcn.nws
Binary file not shown.
Binary file modified gempak/maps/hiosuo.nws
Binary file not shown.
Binary file modified gempak/maps/hiznus.nws
Binary file not shown.
Binary file modified gempak/maps/locnus.nws
Binary file not shown.
Binary file modified gempak/maps/locwa.nws
Binary file not shown.
Binary file modified gempak/maps/lofzus.nws
Binary file not shown.
Binary file modified gempak/maps/lomouo.nws
Binary file not shown.
Binary file modified gempak/maps/lomzcn.nws
Binary file not shown.
Binary file modified gempak/maps/loosuo.nws
Binary file not shown.
Binary file modified gempak/maps/loznus.nws
Binary file not shown.
Binary file modified gempak/maps/mecnus.nws
Binary file not shown.
Binary file modified gempak/maps/mecwa.nws
Binary file not shown.
Binary file modified gempak/maps/mefzus.nws
Binary file not shown.
Binary file modified gempak/maps/memouo.nws
Binary file not shown.
Binary file modified gempak/maps/memzcn.nws
Binary file not shown.
Binary file modified gempak/maps/meosuo.nws
Binary file not shown.
Binary file modified gempak/maps/meznus.nws
Binary file not shown.
Binary file modified gempak/maps/spcout.ncp
Binary file not shown.
Binary file modified gempak/maps/tpcnus.nws
Binary file not shown.
Binary file modified gempak/maps/tpcwa.nws
Binary file not shown.
Binary file modified gempak/maps/tpfzus.nws
Binary file not shown.
Binary file modified gempak/maps/tpmouo.nws
Binary file not shown.
Binary file modified gempak/maps/tpmzcn.nws
Binary file not shown.
Binary file modified gempak/maps/tposuo.nws
Binary file not shown.
Binary file modified gempak/maps/tpznus.nws
Binary file not shown.
76 changes: 58 additions & 18 deletions gempak/source/bridge/dc/dcgbul.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "dccmn.h"

#define MAX_TRIES 10

/*
** Define and initialize the finite-state machine for finding a
** bulletin in the buffer.
Expand Down Expand Up @@ -34,12 +36,23 @@ void dc_gbul ( char *bulletin, int *lenb, int *ifdtyp, int *iret )
* E. Wehner/EAI 7/96 Added more checking for state machine *
* J. Whistler/AWC 8/96 Changed call to dcb_peekc *
* S. Chiswell/UPC 1/99 Fixed CR_CR_ state when CR_ is found *
* S. Chiswell/UPC 2/04 handle EBFULL to continue looking *
* S. Guan/NCEP 11/10 Added retry when EOF is found *
* J. Ator/NCEP 10/13 For WMO feed, don't accept CHCTLC as *
* end of bulletin if it immediately *
* follows the header. *
* M. Weiss/NCEP 5/2018 Inserted ^M check in case IN_BULLETIN *
* when ifdtyp = 1 *
***********************************************************************/
{

static unsigned char ch;
int ier;
int ier, try;
unsigned long nline;
/* Keeps count of number of lines
(CR_CR_NL) in current bulletin. */
unsigned long nchar;
/* Keeps count of number of characters
in current line of bulletin. */

/*---------------------------------------------------------------------*/
*iret = 0;
Expand All @@ -57,30 +70,40 @@ void dc_gbul ( char *bulletin, int *lenb, int *ifdtyp, int *iret )
if ( ( finite_state != START ) ||
( dcb_isempt() == 1 ) ) {

try = 0;
while ( try < MAX_TRIES ) {
/*
** Read from standard input to the buffer.
** Read from standard input to the buffer.
*/
if ( ( ier = dcb_put ( STDIN_FILENO, itmout ) ) < 0 ) {

if ( ier == EBFULL ) {
ier = dcb_put ( STDIN_FILENO, itmout );
if ( ( ier == EBEND ) < 0 ) {
/*
** If buffer overflowed, start over looking for
** bulletins that we can fit into buffer.
** End of data file has occurred.
** To make sure it is true end,
** check maximum MAX_TRIES times,
** each waits one second.
*/
dcb_sbtl ( 0 );
ier = dcb_getb ( bulletin );
/* reset start (Chiz) */
finite_state = START;
continue;
sleep(1);
try++;
}

else {
else if ( ier < 0 ) {
/*
** Timeout or end of data file has occurred.
** Timeout has occurred.
*/
*iret = ier;
return;
}
else {
break;
}
}

if ( ier < 0 ) {
/*
** "True" end of data file has occurred.
*/
*iret = ier;
return;
}

}
Expand Down Expand Up @@ -171,6 +194,13 @@ void dc_gbul ( char *bulletin, int *lenb, int *ifdtyp, int *iret )
dcb_sbhd ( -3 );
finite_state = IN_BULLETIN;
*ifdtyp = 0;
/*
** SOH_CR_CR_NL is the 1st line of the bulletin. The
** next 2 lines will contain the rest of the header,
** for a total of 3 lines in the bulletin header.
*/
nline = 1;
nchar = 0;
}
else {
if (ch == 'Z')
Expand Down Expand Up @@ -271,12 +301,16 @@ void dc_gbul ( char *bulletin, int *lenb, int *ifdtyp, int *iret )
}
else {
finite_state = IN_BULLETIN;
nchar++;
}
}
else {
if ( ch == 'N' ) {
finite_state = N_;
}
else if ( ch == CHCR ) {
finite_state = CR_;
}
else {
finite_state = IN_BULLETIN;
}
Expand All @@ -293,6 +327,7 @@ void dc_gbul ( char *bulletin, int *lenb, int *ifdtyp, int *iret )
}
else {
finite_state = IN_BULLETIN;
nchar++;
}
break;

Expand All @@ -303,6 +338,8 @@ void dc_gbul ( char *bulletin, int *lenb, int *ifdtyp, int *iret )
case CR_CR_:
if ( ch == CHLF ) {
finite_state = CR_CR_NL_;
if ( nchar > 0 ) nline++;
nchar = 0;
}
else
{
Expand All @@ -313,16 +350,18 @@ void dc_gbul ( char *bulletin, int *lenb, int *ifdtyp, int *iret )
else
{
finite_state = IN_BULLETIN;
nchar++;
}
}
break;

/*
** If two Carriage Returns and a Line Feed have been
** found, check for a Control-C.
** found, and if we've reached at least the end of the
** 4th line of the bulletin, check for a Control-C.
*/
case CR_CR_NL_:
if ( ch == CHCTLC ) {
if ( ( ch == CHCTLC ) && ( nline > 3 ) ) {
/*
** If it is a Control-C, reset the search, then
** retrieve and return the complete bulletin.
Expand All @@ -344,6 +383,7 @@ void dc_gbul ( char *bulletin, int *lenb, int *ifdtyp, int *iret )
}
else {
finite_state = IN_BULLETIN;
nchar++;
}
break;

Expand Down
10 changes: 6 additions & 4 deletions gempak/source/bridge/nc/nchdr.f
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ SUBROUTINE NC_HDR ( strbuf, org, iotarr, strtim, stptim, updt,
C* J. Lewis/AWC 04/05 Remove check for match between *
C* originating station and stnid *
C* in product *
C* B. Hebbard/NCO per 04/21 Fix AWC non-convective SIGMETs for *
C* L. Hinson/AWC Blowing Dust (NAWIPS-173) *
C************************************************************************
INCLUDE 'GEMPRM.PRM'
C*
Expand All @@ -58,10 +60,10 @@ SUBROUTINE NC_HDR ( strbuf, org, iotarr, strtim, stptim, updt,
astart = ' '
astop = ' '
ii = 1
DO WHILE ( .not. found )
IF ( ( INDEX ( carr ( ii + 1 ), 'WS' ) .ne. 0 ) .or.
+ ( INDEX ( carr ( ii + 1 ), 'WC' ) .ne. 0 ) .or.
+ ( INDEX ( carr ( ii + 1 ), 'WV' ) .ne. 0 ) ) THEN
DO WHILE ( .not. found )
IF ( carr ( ii + 1 ) .eq. "WS" .or.
+ carr ( ii + 1 ) .eq. "WC" .or.
+ carr ( ii + 1 ) .eq. "WV" ) THEN
found = .true.
astart = carr ( ii + 2 )
IF ( carr ( ii + 3 ) .ne. 'SIGMET' ) THEN
Expand Down
Loading

0 comments on commit 80ba576

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy