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

Read fields from a GRIB2 file and write them to a new file with WMO super header. More...

Go to the source code of this file.

Functions/Subroutines

program tocgrib2super
 This program reads selected GRIB2 fields from a file, adds a flag Field separator block and the size in bytes of the grib file, and the WMO super header and the time stamp, adds a TOC Flag Field separator block and WMO Header in front of each GRIB2 field, and writes them out to a new file.
 

Detailed Description

Read fields from a GRIB2 file and write them to a new file with WMO super header.

Author
Gilbert
Date
2004-05-17

Definition in file tocgrib2super.F90.

Function/Subroutine Documentation

◆ tocgrib2super()

program tocgrib2super

This program reads selected GRIB2 fields from a file, adds a flag Field separator block and the size in bytes of the grib file, and the WMO super header and the time stamp, adds a TOC Flag Field separator block and WMO Header in front of each GRIB2 field, and writes them out to a new file.

The output file is in the format required for TOC's FTP Input Service, which can be used to disseminate the GRIB2 bulletins. See [File Transfer Input Service Guide - Input examples and how to FTP files to the Gateway] (https://www.weather.gov/tg/ftpingest).

Note
The "EXTRACT" variable in the namelist allows users to choose whether they want the entire GRIB2 message containing the requested field (extract=.false.), OR a GRIB2 message containing only the requested field (extract=.true.). Both options return the same message if the requested field is the only field in the GRIB2 message.

Input Files

  • 5 Namelist of grib fields and associated wmo headers.
  • 11 Input grib2 file.
  • 12 Get the file size of the grib file
  • 31 Corresponding input grib2 index file.

Output Files (Including Scratch Files)

  • 6 standard fortran print file
  • 51 output grib bulletin file in toc format
Returns
  • 0 - Successful run
  • 10 - Error opening input GRIB2 data file
  • 20 - Error opening output GRIB transmission file
  • 19 - error reading control card file - all bulletins missing
  • 30 - some bulletins are missing
Author
Gilbert
Date
2004-05-17

Definition at line 41 of file tocgrib2super.F90.

References getgb2p2(), makwmo(), and mkfldsep().