Skip to content

Commit

Permalink
added old version to docs (#649)
Browse files Browse the repository at this point in the history
* added old version to docs

* updated docs

* updated docs
  • Loading branch information
edwardhartnett authored Mar 20, 2024
1 parent 5592bc5 commit da8148a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions docs/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ gf_free().

# Extracting GRIB2 Fields from a GRIB2 file

Subroutine getgb2() can be used to extract a specified field from a
file containing many GRIB2 messages. getgb2() searches an index to
Subroutine getgb2i2() can be used to extract a specified field from a
file containing many GRIB2 messages. getgb2i2() searches an index to
find the location of the user specified field. The index can be
supplied from a seperate GRIB2 index file, or it can be generated
internally.

If getgb2() is used, call gf_finalize() to free all
If getgb2i2() is used, call gf_finalize() to free all
memory. gf_finalize() only needs to be called once, no matter how many
times getgb2() is called.
times getgb2i2() is called.

The GRIB2 file (and the index file, if supplied) must be opened with
a call to subroutine baopen() prior to the call to getgb2().
a call to subroutine baopen() prior to the call to getgb2i2().

The decoded information for the selected GRIB field is returned in a
derived type variable, gfld. Gfld is of type grib_mod::gribfield;
Expand Down Expand Up @@ -144,6 +144,7 @@ http://www.nws.noaa.gov/tdl/iwt/grib2/frameset_grib2.htm.

## Documentation for Previous Versions of NCEPLIBS-g2

* [NCEPLIBS-g2 Version 3.4.8](ver-3.4.8/index.html)
* [NCEPLIBS-g2 Version 3.4.7](ver-3.4.7/index.html)
* [NCEPLIBS-g2 Version 3.4.6](ver-3.4.6/index.html)
* [NCEPLIBS-g2 Version 3.4.5](ver-3.4.5/index.html)
Expand Down
2 changes: 1 addition & 1 deletion src/g2getgb2.F90
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ end subroutine getgb2
!> - 99 request not found
!> - other gf_getfld grib2 unpacker return code
!>
!> @author Ed Hartnett @date 2024-03-19
!> @author Ed Hartnett, Mark Iredell @date 2024-03-19
subroutine getgb2i2(lugb, lugi, j, jdisc, jids, jpdtn, jpdt, jgdtn, jgdt, &
unpack, idxver, k, gfld, iret)
use grib_mod
Expand Down

0 comments on commit da8148a

Please sign in to comment.