NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fi71.f File Reference

Make array used by GRIB packer for GDS. More...

Go to the source code of this file.

Functions/Subroutines

subroutine w3fi71 (igrid, igds, ierr)
 Makes a 18, 37, 55, 64, or 91 word integer array used by w3fi72() GRIB packer to make the grid description section (GDS) - section 2.
 

Detailed Description

Make array used by GRIB packer for GDS.

Author
Ralph Jones
Date
1992-02-21

Definition in file w3fi71.f.

Function/Subroutine Documentation

◆ w3fi71()

subroutine w3fi71 ( integer  igrid,
integer, dimension (*)  igds,
  ierr 
)

Makes a 18, 37, 55, 64, or 91 word integer array used by w3fi72() GRIB packer to make the grid description section (GDS) - section 2.

Note
  • 1) Office note grid type 26 is 6 in grib, 26 is an international exchange grid.
  • 2) Values returned in 18, 37, 55, 64, or 91 word integer array igds vary depending on grid representation type.
  • LAT/LON GRID:
    • IGDS( 1) = number of vertical coordinates
    • IGDS( 2) = pv, pl or 255
    • IGDS( 3) = data representation type (code table 6)
    • IGDS( 4) = no. of points along a latitude
    • IGDS( 5) = no. of points along a longitude meridian
    • IGDS( 6) = latitude of origin (south - ive)
    • IGDS( 7) = longitude of origin (west -ive)
    • IGDS( 8) = resolution flag (code table 7)
    • IGDS( 9) = latitude of extreme point (south - ive)
    • IGDS(10) = longitude of extreme point (west - ive)
    • IGDS(11) = latitude increment
    • IGDS(12) = longitude increment
    • IGDS(13) = scanning mode flags (code table 8)
    • IGDS(14) = ... through ...
    • IGDS(18) = ... not used for this grid
    • IGDS(19) - igds(91) for grids 37-44, number of points
    • in each of 73 rows.
  • GAUSSIAN GRID:
    • IGDS( 1) = ... through ...
    • IGDS(10) = ... same as lat/lon grid
    • IGDS(11) = number of latitude lines between a pole
    • and the equator
    • IGDS(12) = longitude increment
    • IGDS(13) = scanning mode flags (code table 8)
    • IGDS(14) = ... through ...
    • IGDS(18) = ... not used for this grid
  • SPHERICAL HARMONICS:
    • IGDS( 1) = number of vertical coordinates
    • IGDS( 2) = pv, pl or 255
    • IGDS( 3) = data representation type (code table 6)
    • IGDS( 4) = j - pentagonal resolution parameter
    • IGDS( 5) = k - pentagonal resolution parameter
    • IGDS( 6) = m - pentagonal resolution parameter
    • IGDS( 7) = representation type (code table 9)
    • IGDS( 8) = representation mode (code table 10)
    • IGDS( 9) = ... through ...
    • IGDS(18) = ... not used for this grid
  • POLAR STEREOGRAPHIC:
    • IGDS( 1) = number of vertical coordinates
    • IGDS( 2) = pv, pl or 255
    • IGDS( 3) = data representation type (code table 6)
    • IGDS( 4) = no. of points along x-axis
    • IGDS( 5) = no. of points along y-axis
    • IGDS( 6) = latitude of origin (south -ive)
    • IGDS( 7) = longitute of origin (west -ive)
    • IGDS( 8) = resolution flag (code table 7)
    • IGDS( 9) = longitude of meridian parallel to y-axis
    • IGDS(10) = x-direction grid length (increment)
    • IGDS(11) = y-direction grid length (increment)
    • IGDS(12) = projection center flag (0=north pole on plane,
    • 1=south pole on plane,
    • IGDS(13) = scanning mode flags (code table 8)
    • IGDS(14) = ... through ...
    • IGDS(18) = .. not used for this grid
  • MERCATOR:
    • IGDS( 1) = ... through ...
    • IGDS(12) = ... same as lat/lon grid
    • IGDS(13) = latitude at which projection cylinder
    • intersects earth
    • IGDS(14) = scanning mode flags
    • IGDS(15) = ... through ...
    • IGDS(18) = .. not used for this grid
  • LAMBERT CONFORMAL:
    • IGDS( 1) = number of vertical coordinates
    • IGDS( 2) = pv, pl or 255
    • IGDS( 3) = data representation type (code table 6)
    • IGDS( 4) = no. of points along x-axis
    • IGDS( 5) = no. of points along y-axis
    • IGDS( 6) = latitude of origin (south -ive)
    • IGDS( 7) = longitute of origin (west -ive)
    • IGDS( 8) = resolution flag (code table 7)
    • IGDS( 9) = longitude of meridian parallel to y-axis
    • IGDS(10) = x-direction grid length (increment)
    • IGDS(11) = y-direction grid length (increment)
    • IGDS(12) = projection center flag (0=north pole on plane,
    • 1=south pole on plane,
    • IGDS(13) = scanning mode flags (code table 8)
    • IGDS(14) = not used
    • IGDS(15) = first latitude from the pole at which the
    • secant cone cuts the sperical earth
    • IGDS(16) = second latitude ...
    • IGDS(17) = latitude of south pole (millidegrees)
    • IGDS(18) = longitude of south pole (millidegrees)
  • ARAKAWA SEMI-STAGGERED E-GRID ON ROTATED LAT/LON GRID
    • IGDS( 1) = number of vertical coordinates
    • IGDS( 2) = pv, pl or 255
    • IGDS( 3) = data representation type (code table 6) [201]
    • IGDS( 4) = ni - total number of actual data points
    • included on grid
    • IGDS( 5) = nj - dummy second dimension; set=1
    • IGDS( 6) = la1 - latitude of first grid point
    • IGDS( 7) = lo1 - longitude of first grid point
    • IGDS( 8) = resolution and component flag (code table 7)
    • IGDS( 9) = la2 - number of mass points along
    • southernmost row of grid
    • IGDS(10) = lo2 - number of rows in each column
    • IGDS(11) = di - longitudinal direction increment
    • IGDS(12) = dj - latitudinal direction increment
    • IGDS(13) = scanning mode flags (code table 8)
    • IGDS(14) = ... through ...
    • IGDS(18) = ... not used for this grid (set to zero)
  • ARAKAWA FILLED E-GRID ON ROTATED LAT/LON GRID
    • IGDS( 1) = number of vertical coordinates
    • IGDS( 2) = pv, pl or 255
    • IGDS( 3) = data representation type (code table 6) [202]
    • IGDS( 4) = ni - total number of actual data points
    • included on grid
    • IGDS( 5) = nj - dummy second dimention; set=1
    • IGDS( 6) = la1 - latitude latitude of first grid point
    • IGDS( 7) = lo1 - longitude of first grid point
    • IGDS( 8) = resolution and component flag (code table 7)
    • IGDS( 9) = la2 - number of (zonal) points in each row
    • IGDS(10) = lo2 - number of (meridional) points in each
    • column
    • IGDS(11) = di - longitudinal direction increment
    • IGDS(12) = dj - latitudinal direction increment
    • IGDS(13) = scanning mode flags (code table 8)
    • IGDS(14) = ... through ...
    • IGDS(18) = ... not used for this grid
  • ARAKAWA STAGGERED E-GRID ON ROTATED LAT/LON GRID
    • IGDS( 1) = number of vertical coordinates
    • IGDS( 2) = pv, pl or 255
    • IGDS( 3) = data representation type (code table 6) [203]
    • IGDS( 4) = ni - number of data points in each row
    • IGDS( 5) = nj - number of rows
    • IGDS( 6) = la1 - latitude of first grid point
    • IGDS( 7) = lo1 - longitude of first grid point
    • IGDS( 8) = resolution and component flag (code table 7)
    • IGDS( 9) = la2 - central latitude
    • IGDS(10) = lo2 - central longtitude
    • IGDS(11) = di - longitudinal direction increment
    • IGDS(12) = dj - latitudinal direction increment
    • IGDS(13) = scanning mode flags (code table 8)
    • IGDS(14) = ... through ...
    • IGDS(18) = ... not used for this grid
  • CURVILINEAR ORTHOGONAL GRID
    • IGDS( 1) = number of vertical coordinates
    • IGDS( 2) = pv, pl or 255
    • IGDS( 3) = data representation type (code table 6) [204]
    • IGDS( 4) = ni - number of data points in each row
    • IGDS( 5) = nj - number of rows
    • IGDS( 6) = reserved (set to 0)
    • IGDS( 7) = reserved (set to 0)
    • IGDS( 8) = resolution and component flag (code table 7)
    • IGDS( 9) = reserved (set to 0)
    • IGDS(10) = reserved (set to 0)
    • IGDS(11) = reserved (set to 0)
    • IGDS(12) = reserved (set to 0)
    • IGDS(13) = scanning mode flags (code table 8)
    • IGDS(14) = ... through ...
    • IGDS(18) = ... not used for this grid
Parameters
[in]IGRIDGRIB grid number, or office note 84 grid number
[out]IGDS18, 37, 55, 64, or 91 word integer array with information to make a grib grid description section.
[out]IERR
  • 0 Correct exit
  • 1 Grid type in igrid is not in table
Author
Ralph Jones
Date
1992-02-21

Definition at line 186 of file w3fi71.f.