grib2io-interp: Interpolation Component Package for grib2io
Introduction
grib2io-interp is an interpolation component package for grib2io. This package provides a Python interface to the NCEPLIBS-ip Fortran library via a NumPy/F2PY extension module. Originally, grib2io-interp was a part of the grib2io package, but since it requires NumPy.distutils to build and install, it needs to be handled separately from the main grib2io source that are using setuptools. This package contains an extension module, interpolate, that provides interfaces to Fortran subroutines and these subroutines serve as wrappers to NCEPLIBS-ip subroutines. The following table illustrates the mapping:
| grib2io-interp | NCEPLIBS-ip |
|---|---|
| interpolate.interpolate_scalar | ipolates_grib2 |
| interpolate.interpolate_vector | ipolatev_grib2 |
Documentation
Required Software
Despite this package being a component for grib2io, grib2io is not a formal dependency for grib2io-interp.
- Python 3.8, 3.9, 3.10, and 3.11
- NCEPLIBS-ip 4.1.0+
- NCEPLIBS-sp 2.5.0+ (IMPORTANT: required if NCEPLIBS-ip < v5.0.0)
- setuptools 61.0+
- NumPy 1.22+ (NumPy v2.x not supported at this time)
- Fortran Compiler: GNU (gfortran) and Intel (ifort) have been tested.
NCEPLIBS-ip
Installation
pip
If NCEPLIBS-ip has been installed to custom location (i.e. not default paths), then define the root of the installation via environment variable IP_DIR. If the NCEPLIBS-ip version is < 5.0.0, then you will need to install NCEPLIBS-sp and if installed to a custom location, then define the root of the installation via environment variable SP_DIR.
pip install grib2io-interp
conda
All required libraries are available in conda-forge.
conda install -c conda-forge grib2io-interp
Build and Install from Source
-
Clone GitHub repository or download a source release from GitHub or PyPI.
-
Edit
setup.cfgto define the NCEPLIBS-ip library installation path OR defineIP_DIRenvironment variable. -
Build and install. Use
--userto install into personal space ($HOME/.local).
pip install .
To build with Intel compilers, perform the following
pip install . --config-settings="--build-option=build --fcompiler=intelem"
Development
The development evolution of grib2io-interp will mainly focus on how best to serve that purpose and its primary user's -- mainly meteorologists, physical scientists, and software developers supporting the missions within NOAA's National Weather Service (NWS) and National Centers for Environmental Prediction (NCEP), and other NOAA organizations.
Disclaimer
This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an 'as is' basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this 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.
Metadata
Release files for grib2io-interp 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| grib2io_interp-1.3.0.tar.gz | 56.5 MB | Without provenance | Details for grib2io_interp-1.3.0.tar.gz |
Release files / grib2io_interp-1.3.0.tar.gz
| Download URL | grib2io_interp-1.3.0.tar.gz |
|---|---|
| Size | 56.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
922cf48f940d13cc083408ed429a8d735431c133b379660e7d4450ca30e5ae63
|
|
BLAKE2b-256 checksum How to use checksums |
9f4de952e4e136b08988281ad803afba68af7c819e037624b23ae93b6f8590fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for grib2io-interp 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.