science/py-netCDF4 1.7.2_3 MidnightBSD
Python Interface to the NetCDF Library (versions 3 and 4)
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- Last update
- Commit
993e5c5641- License
- mit
- Categories
- science, python
Description
netCDF version 4 has many features not found in earlier versions of the library and is implemented on top of HDF5. This module can read and write files in both the new netCDF 4 and the old netCDF 3 format, and can create files that are readable by HDF5 clients. The API modelled after Scientific.IO.NetCDF, and should be familiar to users of that module.
Many new features of netCDF 4 are implemented, such as multiple unlimited dimensions, groups and zlib data compression. All the new primitive data types (such as 64 bit and unsigned integer types) are implemented, except variable-length strings (NC_STRING). User defined data types (compound, vlen, enum etc.) are not supported.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | science/py-netCDF4 | 1.7.2_3 |
| FreeBSD | science/py-netCDF4 | 1.7.2_2 |
| DragonFly | science/py-netCDF4 | 1.7.2 |
| HardenedBSD | science/py-netCDF4 | 1.7.2_2 |
| GhostBSD | science/py-netCDF4 | 1.7.2_2 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}netCDF4
From mports:
cd /usr/mports/science/py-netCDF4 && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}netCDF4>0:science/py-netCDF4
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}numpy1>=1.16: math/py-numpy1
Library 2
libhdf5.so: science/hdf5libnetcdf.so: science/netcdf
Runtime 2
${PYTHON_PKGNAMEPREFIX}numpy1>=1.16: math/py-numpy1${PYTHON_PKGNAMEPREFIX}cftime>=0: devel/py-cftime
Build dependencies 3
Run dependencies 4
Required by 2
Configuration
Options name: science_netCDF4
| Option | Default | Description |
|---|---|---|
| DOCS | off | |
| EXAMPLES | off |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| netcdf4-1.7.2.tar.gz | 835064 | a4c6375540b19989896136943abb6d44850ff6f1fa7d3f063253b1ad3f8b7fce |
Master sites 1
- PYPI
Commit history 1
| Date | Commit | Credits | Log message |
|---|---|---|---|
993e5c5641 |
Lucas Holt | science/py-netCDF4: fix the staging path in the option install targets The option helper targets (post-install-DOCS-on and friends) are entries in
_FAKE_SEQ and run in the main make, not in the sub-make that fake-post-install
starts with FAKE_SETUP. There PREFIX is not stage-prefixed and STAGEDIR is
empty, so ${STAGEDIR}${DOCSDIR} resolved to the live /usr/local: the build
wrote outside the stage directory and the file was then reported missing, e.g.
install ... README.rst /usr/local/share/doc/py312-webcolors
/usr/local/share/doc/py312-webcolors/README.rst not installed.
Fake failed.
Use ${FAKE_DESTDIR} in these targets, as x11-wm/icewm already does.
AI-Assisted-by: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Lucas Holt <[email protected]> |