The NCEP general interpolation library contains Fortran 90 subprograms to be used for interpolating between nearly all grids used at NCEP. The library is particularly efficient when interpolating many fields at one time. It also contains routines for spectral transforms and other processing, including those previously contained in the NCEPLIBS-sp library.
This is part of the NCEPLIBS project.
There are currently six interpolation methods available in the library:
- bilinear
- bicubic
- neighbor
- budget
- spectral
- neighbor-budget
For full documentation see https://noaa-emc.github.io/NCEPLIBS-ip/.
To submit bug reports, feature requests, or other code-related issues including installation and usage questions, please create a GitHub issue. For general NCEPLIBS inquiries, contact Ed Hartnett (secondary point of contact Alex Richert).
- NCEP/EMC Developers
Code Manager: Alex Richert
This package requires a BLAS/LAPACK library to provide several LU decomposition-related routines, and requires CMake (version 3.15+) to build. See documentation for details on setting the BLAS/LAPACK library.
git clone https://github.com/NOAA-EMC/NCEPLIBS-ip
cmake -DCMAKE_INSTALL_PREFIX=/path/to/install -S NCEPLIBS-ip -B NCEPLIBS-ip/build # <add'l CMake options>
cmake --build NCEPLIBS-ip/build --parallel 4
ctest --test-dir NCEPLIBS-ip/build --parallel 4 # <add'l CTest options>
cmake --install NCEPLIBS-ip/build
Commonly useful CMake options include:
-DCMAKE_INSTALL_PREFIX
: path to install directory (default is /usr/local)-DBUILD_SHARED_LIBS
: build dynamically linked (shared) libraries (default is static)
Commonly useful CTest options include:
--output-on-failure
: show verbose output only when a test fails-L
/--label-regex
: only run test labels matching a given regular expression-R
/--tests-regex
: only run tests matching a given regular expression
NCEPLIBS-ip is also available through Spack as 'ip'.
Most routines and any public interfaces required can be accessed by adding use ip_mod
to your Fortran code. Spectral transform and processing subroutines
previously associated with the NCEPLIBS-sp library can be accessed by calling
with use sp_mod
.
The United States Department of Commerce (DOC) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. DOC has relinquished control of the information and no longer has responsibility to protect the integrity, confidentiality, or availability of the information. Any claims against the Department of Commerce stemming from the use of its GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.