NCEPLIBS-ip  4.1.0
ip_grid_factory_mod Module Reference

Routines for creating an ip_grid given a Grib descriptor. More...

Data Types

interface  init_grid
 

Functions/Subroutines

subroutine init_grid_generic (grid, grid_desc)
 Initializes a polymorphic ip_grid object from an ip_grid_descriptor. More...
 
subroutine init_grid_grib1 (grid, g1_desc)
 Initializes a polymorphic ip_grid from a grib1_descriptor. More...
 
subroutine init_grid_grib2 (grid, g2_desc)
 Initializes a polymorphic ip_grid from a grib2_descriptor. More...
 

Detailed Description

Routines for creating an ip_grid given a Grib descriptor.

Author
George Gayno, Mark Iredell, Kyle Gerheiser
Date
July 2021

Function/Subroutine Documentation

◆ init_grid_generic()

subroutine ip_grid_factory_mod::init_grid_generic ( class(ip_grid), intent(out), allocatable  grid,
class(ip_grid_descriptor), intent(in)  grid_desc 
)
private

Initializes a polymorphic ip_grid object from an ip_grid_descriptor.

Parameters
[out]gridGrid to initialize
[in]grid_descGrid descriptor created from a grib1/grib2 template.
Author
Kyle Gerheiser
Date
July 2021

Definition at line 33 of file ip_grid_factory_mod.F90.

◆ init_grid_grib1()

subroutine ip_grid_factory_mod::init_grid_grib1 ( class(ip_grid), intent(out), allocatable  grid,
type(grib1_descriptor), intent(in)  g1_desc 
)
private

Initializes a polymorphic ip_grid from a grib1_descriptor.

The concrete grid type is chosen based on the grid number in the descriptor.

Parameters
[out]gridGrid to initialize
[in]g1_desc
Author
Kyle Gerheiser
Date
July 2021

Definition at line 53 of file ip_grid_factory_mod.F90.

References ip_grid_mod::equid_cylind_grid_id_grib1, ip_grid_mod::gaussian_grid_id_grib1, ip_grid_mod::lambert_conf_grid_id_grib1, ip_grid_mod::mercator_grid_id_grib1, ip_grid_mod::polar_stereo_grid_id_grib1, ip_grid_mod::rot_equid_cylind_b_grid_id_grib1, and ip_grid_mod::rot_equid_cylind_e_grid_id_grib1.

Referenced by ip_grid_factory_mod::init_grid::init_grid_generic().

◆ init_grid_grib2()

subroutine ip_grid_factory_mod::init_grid_grib2 ( class(ip_grid), intent(out), allocatable  grid,
type(grib2_descriptor), intent(in)  g2_desc 
)
private

Initializes a polymorphic ip_grid from a grib2_descriptor.

The concrete grid type is chosen based on the grid number in the descriptor.

Parameters
[out]gridGrid to initialize
[in]g2_descGrib2 descriptor
Author
Kyle Gerheiser
Date
July 2021

Definition at line 89 of file ip_grid_factory_mod.F90.

References ip_grid_mod::equid_cylind_grid_id_grib2, ip_grid_mod::gaussian_grid_id_grib2, ip_grid_mod::lambert_conf_grid_id_grib2, ip_grid_mod::mercator_grid_id_grib2, ip_grid_mod::polar_stereo_grid_id_grib2, and ip_grid_mod::rot_equid_cylind_grid_id_grib2.

Referenced by ip_grid_factory_mod::init_grid::init_grid_generic().