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

Go to the source code of this file.

Functions/Subroutines

subroutine mtfnam (IMT, IMTV, IOGCE, IMTVL, TBLTYP, STDFIL, LOCFIL)
 BASED ON THE INPUT ARGUMENTS, THIS SUBROUTINE DETERMINES THE NAMES OF THE CORRESPONDING STANDARD AND LOCAL MASTER TABLE FILES. More...
 

Detailed Description

Author
ATOR
Date
2017-10-16

Definition in file mtfnam.f.

Function/Subroutine Documentation

subroutine mtfnam (   IMT,
  IMTV,
  IOGCE,
  IMTVL,
character*(*)  TBLTYP,
character*(*)  STDFIL,
character*(*)  LOCFIL 
)

BASED ON THE INPUT ARGUMENTS, THIS SUBROUTINE DETERMINES THE NAMES OF THE CORRESPONDING STANDARD AND LOCAL MASTER TABLE FILES.

IT THEN CONFIRMS THE EXISTENCE OF THESE FILES ON THE FILESYSTEM, USING ADDITIONAL INFORMATION OBTAINED FROM THE MOST RECENT CALL TO SUBROUTINE MTINFO, OR ELSE AS DEFINED WITHIN SUBROUTINE BFRINI IF SUBROUTINE MTINFO WAS NEVER CALLED.

PROGRAM HISTORY LOG: 2017-10-16 J. ATOR – ORIGINAL AUTHOR

USAGE: CALL MTFNAM ( IMT, IMTV, IOGCE, IMTVL, TBLTYP, STDFIL, LOCFIL ) INPUT ARGUMENT LIST: IMT - INTEGER: MASTER TABLE NUMBER IMTV - INTEGER: MASTER TABLE VERSION NUMBER IOGCE - INTEGER: ORIGINATING CENTER IMTVL - INTEGER: LOCAL TABLE VERSION NUMBER TBLTYP - CHARACTER*(*): TABLE TYPE: 'TableB' = Table B 'TableD' = Table D 'CodeFlag' = Code and Flag Tables

OUTPUT ARGUMENT LIST: STDFIL - CHARACTER*(*): STANDARD MASTER TABLE PATH/FILENAME LOCFIL - CHARACTER*(*): LOCAL MASTER TABLE PATH/FILENAME

REMARKS: THIS ROUTINE CALLS: BORT2 ERRWRT ISIZE STRSUC THIS ROUTINE IS CALLED BY: IREADMT Normally not called by any application programs.

Definition at line 36 of file mtfnam.f.

References bort2(), errwrt(), isize(), and strsuc().

Referenced by ireadmt().