NCEPLIBS-bufr  11.5.0
 All Data Structures Files Functions Variables Pages
capit.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine capit (STR)
 THIS SUBROUTINE CAPITALIZES A STRING OF CHARACTERS. More...
 

Detailed Description

Author
WOOLLEN
Date
2002-05-14

Definition in file capit.f.

Function/Subroutine Documentation

subroutine capit ( character*(*)  STR)

THIS SUBROUTINE CAPITALIZES A STRING OF CHARACTERS.

THIS ENABLES THE USE OF MIXED CASE IN THE UNIT SECTION OF THE ASCII BUFR TABLES. AN EXAMPLE: A PROGRAM WHICH GENERATES AN ASCII BUFR TABLE FROM THE "MASTER TABLE B" MIGHT END UP COPYING SOME UNITS FIELDS IN MIXED OR LOWER CASE. IF THE UNITS ARE 'CODE TABLE' OR 'FLAG TABLE' OR CERTAIN OTHER UNIT DESIGNATIONS, THE TABLE WILL BE PARSED INCORRECTLY, AND THE DATA READ OR INCORRECTLY AS A RESULT. THIS MAKES SURE ALL UNIT DESIGNATIONS ARE SEEN BY THE PARSER IN UPPER CASE TO AVOID THESE TYPES OF PROBLEMS.

PROGRAM HISTORY LOG: 2002-05-14 J. WOOLLEN – ORIGINAL AUTHOR 2003-11-04 S. BENDER – ADDED REMARKS/BUFRLIB ROUTINE INTERDEPENDENCIES 2003-11-04 D. KEYSER – UNIFIED/PORTABLE FOR WRF; ADDED DOCUMENTATION (INCLUDING HISTORY) 2012-03-02 J. ATOR – CHANGED NAME OF UPS ARRAY TO UPCS TO AVOID NAMESPACE CONTENTION WITH NEW FUNCTION UPS

USAGE: CALL CAPIT (STR) INPUT ARGUMENT LIST: STR - CHARACTER*(*): STRING POSSIBLY CONTAINING MIXED UPPER- AND LOWER-CASE CHARACTERS

OUTPUT ARGUMENT LIST: STR - CHARACTER*(*): SAME STRING AS INPUT BUT NOW CONTAINING ALL UPPER-CASE CHARACTERS

REMARKS: THIS ROUTINE CALLS: None THIS ROUTINE IS CALLED BY: CMPMSG CODFLG ELEMDX STBFDX STDMSG STRCPT Normally not called by any application programs but it could be.

Definition at line 39 of file capit.f.

Referenced by cmpmsg(), codflg(), elemdx(), stbfdx(), stdmsg(), and strcpt().