Skip to content

Commit

Permalink
move wgrib to this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Jun 12, 2024
1 parent 45fe8ee commit 13031f8
Show file tree
Hide file tree
Showing 7 changed files with 16,427 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ option(DISABLE_STAT "disable posix feature" off)
set(BUILD_COMMENTS "stock build")
option(BUILD_LIB "Build wgrib2 library?" on)
option(BUILD_SHARED_LIB "Build shared library?" off)
option(BUILD_WGRIB "Build wgrib code?" off)

# Developers can use this option to specify a local directory which
# holds the test files. They will be copied instead of fetching the
Expand Down Expand Up @@ -204,6 +205,9 @@ if(BUILD_LIB)
DESTINATION ${CONFIG_INSTALL_DESTINATION})
endif()

if (BUILD_WGRIB)
add_subdirectory(wgrib)
endif()
# Turn on unit testing.
include(CTest)
if(BUILD_TESTING)
Expand Down
18 changes: 18 additions & 0 deletions wgrib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This is the CMake file for the wgrib utility of the
# NCEPLIBS-grib_util project.
#
# Mark Potts, Kyle Gerheiser

add_compile_definitions("DEF_T62_NCEP_TABLE=opn" "FAST_GRIBTAB" "P_TABLE_FIRST")

set(c_src wgrib.c)

set(exe_name wgrib)
add_executable(${exe_name} ${c_src})

install(TARGETS ${exe_name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

# If doxygen documentation is enabled, build it.
#if(ENABLE_DOCS)
# add_subdirectory(docs)
#endif()
19 changes: 19 additions & 0 deletions wgrib/Changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Upgrade from v1.8.0.12g (8/06) to v1.8.0.12o (5/07)

Changes:

updated ncep grib table 129, 130 to on388
updated levels to on388
changed units ncep grib table 128 WTPC(186) K->C
support for updates in the grib table by process owners (compile change)
increased stdin line buffer to 2000 characters
level 210 is now WMO standard for non-NCEP files

Reason for upgrade:

Request from marine branch: need updated ncep tables

Comments:
No major changes since last update except needed table updates.
Compile options change so that table changes can be updated with new JIF.
Little change in the run time is expected.
19 changes: 19 additions & 0 deletions wgrib/docs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This is the CMake file for building the docs directory of grib_util
# utility wgrib.
#
# Ed Hartnett 12/13/21

# Create doxyfile.
set(abs_top_srcdir "${CMAKE_SOURCE_DIR}")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)

# Build documentation with target all.
add_custom_target(wgrib_doc ALL
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API Documentation with Doxygen" VERBATIM)

# Ensure top-level docs have been generated.
add_dependencies(wgrib_doc doc)


Loading

0 comments on commit 13031f8

Please sign in to comment.