NCEPLIBS-g2 4.0.0
Loading...
Searching...
No Matches
grb2index.F90 File Reference

Write a GRIB2 index file. More...

Go to the source code of this file.

Functions/Subroutines

program grb2index
 This program creates an index file from a GRIB2 file.
 
integer function ncbase (c, n)
 Locate basename of a file.
 

Detailed Description

Write a GRIB2 index file.

Author
Iredell
Date
1992-11-22

Definition in file grb2index.F90.

Function/Subroutine Documentation

◆ grb2index()

program grb2index

This program creates an index file from a GRIB2 file.

Returns
  • 0 successful run
  • 1 GRIB message not found
  • 2 incorrect arguments
  • 8 error accessing file
  • 9 error closing file
Author
Iredell
Date
1992-11-22

Definition at line 15 of file grb2index.F90.

References g2_create_index(), and ncbase().

◆ ncbase()

integer function ncbase ( character, dimension(*)  c,
integer  n 
)

Locate basename of a file.

This subprogram locates the character number after the last '/' in a character string. For unix filenames, the character number returned marks the beginning of the basename of the file.

Parameters
[in]ccharacter string to search
[in]ninteger length of string
Returns
The index of the basename within the string.
Author
Iredell
Date
93-11-22

Definition at line 94 of file grb2index.F90.

References ncbase().

Referenced by grb2index(), ncbase(), and wrgi1h().