NCEPLIBS-g2 4.0.0
Loading...
Searching...
No Matches
grbindex.f File Reference

Create an index file from a grib file. More...

Go to the source code of this file.

Functions/Subroutines

program grbindex
 Create an index file from a grib file.
 
function ncbase (c, n)
 Locate basename of a file.
 
subroutine wrgi1h (lugi, nlen, nnum, cgb)
 Write index headers.
 

Detailed Description

Create an index file from a grib file.

Author
Iredell
Date
1998-09-15

Definition in file grbindex.f.

Function/Subroutine Documentation

◆ grbindex()

program grbindex

Create an index file from a grib file.

Usage

grbindex <GRIB1 file> <index filename>

Returns
  • 0 - successful run
  • 1 - grib message not found
  • 2 - incorrect arguments
  • 8 - error accessing file
Author
Iredell
Date
1998-09-15

Definition at line 17 of file grbindex.f.

References wrgi1h().

◆ ncbase()

function ncbase ( character, dimension(*)  c,
  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 164 of file grbindex.f.

References ncbase().

◆ wrgi1h()

subroutine wrgi1h (   lugi,
  nlen,
  nnum,
character, dimension(*)  cgb 
)

Write index headers.

This subprogram writes two index headers. Currently, the length of each index record is 152.

Program History Log

Date Programmer Comments
93-11-22 Iredell Initial
95-10-31 Iredell Modularize system calls
2012-07-31 Vuong Changed hostname to hostnam
Parameters
[in]lugiinteger logical unit of output index file
[in]nleninteger length of index records
[in]nnuminteger number of index records
[in]cgbcharacter name of grib file
Author
Iredell
Date
93-11-22

Definition at line 103 of file grbindex.f.

References ncbase().

Referenced by grbindex().