UPP (develop)
Loading...
Searching...
No Matches
grib2_module.f File Reference

This module generates grib2 messages and writes out the messages in parallel. More...

Go to the source code of this file.

Functions/Subroutines

subroutine, public grib2_module::grib_info_finalize
 Finalizes GRIB2 information and closes the file.
 
subroutine, public grib2_module::grib_info_init ()
 Initializes general grib2 information and local variables.
 
subroutine, public grib2_module::gribit2 (post_fname)
 Outputs fields to grib file.
 
subroutine, public grib2_module::read_grib2_head (filenameg2, nx, ny, nz, rlonmin, rlatmax, rdx, rdy)
 Reads in GRIB2 file header information.
 
subroutine, public grib2_module::read_grib2_sngle (filenameg2, ntot, height, var)
 Reads GRIB2 files.
 

Variables

logical, public grib2_module::first_grbtbl
 _____?
 
integer, public grib2_module::nrecout
 Number of records to output.
 
integer, public grib2_module::num_pset
 Number of parameter sets ?
 
type(paramset_t), save, public grib2_module::pset
 parameter set
 

Detailed Description

This module generates grib2 messages and writes out the messages in parallel.

Program history log:

Date Programmer Comments
March 2010 Jun Wang Initial code
January 2012 Jun Wang post available fields with grib2 description are defined in xml file
March 2015 Lin Gan Replace XML file with flat file implementation with parameter marshalling
July 2021 Jesse Meng 2D decomsition
June 2022 Lin Zhu Change the dx/dy to reading in from calculating for latlon grid
January 2023 Sam Trahan Foot & meter unit conversions for IFI
August 2024 Li Pan Enable template 4-49 to obtain aerosol ensemble information

Definition in file grib2_module.f.

Function/Subroutine Documentation

◆ grib_info_finalize()

subroutine, public grib2_module::grib_info_finalize

Finalizes GRIB2 information and closes the file.

Definition at line 187 of file grib2_module.f.

◆ grib_info_init()

subroutine, public grib2_module::grib_info_init

Initializes general grib2 information and local variables.

Definition at line 108 of file grib2_module.f.

◆ gribit2()

subroutine, public grib2_module::gribit2 ( character(255), intent(in)  post_fname)

Outputs fields to grib file.

Parameters
[in]post_fnameUPP file name

Definition at line 199 of file grib2_module.f.

◆ read_grib2_head()

subroutine, public grib2_module::read_grib2_head ( character*256, intent(in)  filenameg2,
integer, intent(out)  nx,
integer, intent(out)  ny,
integer, intent(out)  nz,
real, intent(out)  rlonmin,
real, intent(out)  rlatmax,
real*8, intent(out)  rdx,
real*8, intent(out)  rdy 
)

Reads in GRIB2 file header information.

Parameters
[in]filenameG2Grib 2 file name
[out]nxTotal number of grid points along x
[out]nyTotal number of grid points along y
[out]nzTotal number of grid points along z (vertical)
[out]rlonminWesternmost longitude of the subdomain to extract (negative in Western hemisphere; in degrees) _____?
[out]rlatmaxNorthernmost latitude of the subdomain to extract (in degrees) _____?
[out]rdxInverse x grid length
[out]rdyInverse y grid length

Definition at line 1139 of file grib2_module.f.

◆ read_grib2_sngle()

subroutine, public grib2_module::read_grib2_sngle ( character*256, intent(in)  filenameg2,
integer, intent(in)  ntot,
integer, intent(out)  height,
real, dimension(ntot), intent(out)  var 
)

Reads GRIB2 files.

Parameters
[in]filenameG2Grib 2 file name
[in]ntotTotal count of variables ?
[out]height_____?
[out]varArray of variables

Definition at line 1291 of file grib2_module.f.

Variable Documentation

◆ first_grbtbl

logical, public grib2_module::first_grbtbl

_____?

Definition at line 98 of file grib2_module.f.

◆ nrecout

integer, public grib2_module::nrecout

Number of records to output.

Definition at line 84 of file grib2_module.f.

◆ num_pset

integer, public grib2_module::num_pset

Number of parameter sets ?

Definition at line 85 of file grib2_module.f.

◆ pset

type(paramset_t), save, public grib2_module::pset

parameter set

Definition at line 81 of file grib2_module.f.