GeoCAT-f2py wraps, in Python, the compiled language
Project description
CI | |
---|---|
Docs | |
Package | |
License | |
Citing |
GeoCAT-comp is both the whole computational component of the GeoCAT project and a single Github repository as described in GeoCAT-comp. As the computational component of GeoCAT, GeoCAT-comp provides implementations of computational functions for operating on geosciences data. Many of these functions originated in NCL are pivoted into Python with the help of GeoCAT-comp; however, developers are welcome to come up with novel computational functions for geosciences data.
Many of the computational functions in GeoCAT are implemented in a pure Python fashion. However, there are some others that are implemented in Fortran but wrapped up in Python. To facilitate contribution, the whole GeoCAT-comp structure is split into two repositories with respect to being pure-Python or Python with compiled codes (i.e. Fortran) implementations. While pure Python implementation as well as user API are implemented within GeoCAT-comp, Python codes that calls the Fortran functionality with the help of Numpy's f2py are handled within GeoCAT-f2py (i.e. this repository).
GeoCAT-f2py
GeoCAT-f2py wraps, in Python, the compiled language implementations of some of the computational functions found under the GeoCAT-comp umbrella. The compiled language functions contained in GeoCAT-f2py (i.e. this repository) as Fortran subroutines are wrapped up in corresponding Python wrapper files in the same repository with the help of Numpy.f2py's signature files (.pyf).
Not all computational functions in GeoCAT computational component have compiled language implementations; therefore, developers basing their implementations entirely in Python need not concern themselves with this repo; instead, they should engage with GeoCAT-comp repo as it invisibly imports GeoCAT-f2py. However, for those functions that are implemented in Fortran, this repo provides a Python interface to those functions via a Numpy.f2py wrapper.
Documentation
GeoCAT-comp documentation on Read the Docs
Installation and build instructions
Please see our documentation for installation and build instructions.
Xarray interface vs NumPy interface
GeoCAT-f2py provides a high-level Xarray interface under the
geocat.f2py
namespace. However, a stripped-down NumPy interface is used under the hood to bridge
the gap between NumPy arrays and the compiled language data structures. These functions are
accessible under the geocat.comp.f2py
namespace, but are minimally documented and are
intended primarily for internal use.
Citing GeoCAT-f2py
If you use this software, please cite it as described at the GeoCAT-f2py - Citation page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for geocat.f2py-2022.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e00d23fc138a85b7c5d140b572627f6bb5338f24b9b9688c8ca6a994787df593 |
|
MD5 | b05453b46749dbd9aabe308d5e1fc612 |
|
BLAKE2b-256 | 2b4a802b6420ec9e0c7667c947cfb62e4d044e510cfa6e5aacc95a6d394f2884 |