NCEPLIBS-g2 4.0.0
All Data Structures Namespaces Files Functions Variables Pages
cnv22.F90 File Reference

Converts every GRIB2 field to another GRIB2 field, with different packing options. More...

Go to the source code of this file.

Functions/Subroutines

subroutine cnv22 (ifl1, ifl2, ipack, usemiss, imiss, table_ver)
 This subroutine converts every GRIB2 field in a file to another GRIB2 field, most likely one using a different packing option.
 

Detailed Description

Converts every GRIB2 field to another GRIB2 field, with different packing options.

Author
Stephen Gilbert
Date
2003-06-11

Definition in file cnv22.F90.

Function/Subroutine Documentation

◆ cnv22()

subroutine cnv22 ( integer, intent(in)  ifl1,
integer, intent(in)  ifl2,
integer, intent(in)  ipack,
logical, intent(in)  usemiss,
  imiss,
integer  table_ver 
)

This subroutine converts every GRIB2 field in a file to another GRIB2 field, most likely one using a different packing option.

Program History Log

Date Programmer Comments
2003-06-11 Gilbert Initial
2008-05-14 Vuong Add missing value management option 0
2009-05-20 Vuong Initialize variables idsect,local,list_opt
Parameters
[in]ifl1Fortran unit number of input GRIB2 file.
[in]ifl2Fortran unit number of output GRIB2 file.
[in]ipackGRIB2 packing option:
  • 0 simple packing
  • 2 group packing
  • 31 group pack with 1st order differencing
  • 32 group pack with 2nd order differencing
  • 40 JPEG2000 encoding
  • 40000 JPEG2000 encoding (obsolete)
  • 41 PNG encoding
  • 40010 PNG encoding (obsolete) if ipack .ne. one of the values above, 31 is used as a default.
[in]usemissuses missing value management (instead of bitmaps), for use with ipack options 2, 31, and 32.
[in]imissMissing value management:
  • 0 No explicit missing values included within data values
  • 1 Primary missing values included within data values
[in]table_verMaster Table version, where x is number from 2 to 10.
Author
Stephen Gilbert
Date
2003-06-11

Definition at line 37 of file cnv22.F90.

References addfield(), addgrid(), getgb2(), gf_free(), gribcreate(), gribend(), mkieee(), params::param_get_abbrev(), and rdieee().

Referenced by cnvgrib().