-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added file options for AEC and an additional unit test (#117)
* Added Ed and Wesley's changes for AEC compression * Update Linux_options.yml * Update CMakeLists.txt * Added a unit test * Reverted a few changes in wgrib2/CMakeLists.txt * added new test data to tests\CMakeLists.txt * Renamed test data files and added tests to workflow
- Loading branch information
1 parent
93346bf
commit 8e09b8c
Showing
8 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# Find libaec | ||
# | ||
# LIBAEC_FOUND - if false, do not try to use libaec | ||
# LIBAEC_INCLUDE_DIRS - the libaec include directories | ||
# LIBAEC_LIBRARIES - the libraries to link against to use libaec | ||
# | ||
# This file is part of NCEPLIBS-g2c. Distributed under the LGPL v3.0. | ||
|
||
find_package(PkgConfig QUIET) | ||
pkg_check_modules(LIBAEC_PKGCONF QUIET libaec aec) | ||
set(LIBAEC_VERSION ${LIBAEC_PKGCONF_VERSION}) | ||
|
||
find_path(LIBAEC_INCLUDE_DIRS | ||
NAMES libaec.h | ||
HINTS ${LIBAEC_PKGCONF_INCLUDEDIR} ${LIBAEC_PKGCONF_INCLUDE_DIRS} | ||
) | ||
|
||
find_library(LIBAEC_LIBRARIES | ||
NAMES libaec aec | ||
HINTS ${LIBAEC_PKGCONF_LIBDIR} ${LIBAEC_PKGCONF_LIBRARY_DIRS} | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(libaec | ||
FOUND_VAR LIBAEC_FOUND | ||
REQUIRED_VARS LIBAEC_LIBRARIES LIBAEC_INCLUDE_DIRS | ||
VERSION_VAR LIBAEC_VERSION | ||
) | ||
|
||
mark_as_advanced(LIBAEC_INCLUDE_DIRS LIBAEC_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/data/ref_npts_gdaswave.t00z.wcoast.0p16.f000.grib2.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
1:0:npts=36391 | ||
2:15254:npts=36391 | ||
3:37897:npts=36391 | ||
4:53794:npts=36391 | ||
5:69064:npts=36391 | ||
6:79482:npts=36391 | ||
7:91308:npts=36391 | ||
8:108541:npts=36391 | ||
9:116716:npts=36391 | ||
10:128832:npts=36391 | ||
11:140848:npts=36391 | ||
12:151732:npts=36391 | ||
13:161021:npts=36391 | ||
14:173676:npts=36391 | ||
15:189425:npts=36391 | ||
16:205285:npts=36391 | ||
17:218263:npts=36391 | ||
18:237035:npts=36391 | ||
19:259223:npts=36391 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters