aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-02-05 15:15:16 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-02-05 15:47:39 +0000
commit5660adfb1b4d60a37cb7b19d84c874ed04a066fd (patch)
treec02c7cc9a814a1d61a0ac1c1057d28d53083eb57
parent8c5d502b2d59d22751ce2f73c6720c2824490767 (diff)
downloadports-5660adfb1b4d60a37cb7b19d84c874ed04a066fd.tar.gz
ports-5660adfb1b4d60a37cb7b19d84c874ed04a066fd.zip
science/py-cfgrib: Add py-cfgrib 0.9.10.3
cfgrib provides a Python interface to map GRIB files to the Unidata's Common Data Model v4 following the CF Conventions. The high level API is designed to support a GRIB engine for xarray and it is inspired by netCDF4-python and h5netcdf. Low level access and decoding is performed via the ECMWF ecCodes library and the eccodes python package.
-rw-r--r--science/Makefile1
-rw-r--r--science/py-cfgrib/Makefile35
-rw-r--r--science/py-cfgrib/distinfo3
-rw-r--r--science/py-cfgrib/pkg-descr5
4 files changed, 44 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index fd813b9d88e6..9c50d31c5730 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -305,6 +305,7 @@
SUBDIR += py-boutdata
SUBDIR += py-boututils
SUBDIR += py-cdo
+ SUBDIR += py-cfgrib
SUBDIR += py-chainer
SUBDIR += py-chainer-chemistry
SUBDIR += py-chempy
diff --git a/science/py-cfgrib/Makefile b/science/py-cfgrib/Makefile
new file mode 100644
index 000000000000..fd021aa848ed
--- /dev/null
+++ b/science/py-cfgrib/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= cfgrib
+PORTVERSION= 0.9.10.3
+CATEGORIES= science python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Map GRIB files to the NetCDF Common Data Model following the CF Convention using ecCodes
+WWW= https://github.com/ecmwf/cfgrib
+WWW= https://pypi.org/project/cfgrib/
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=19.2:devel/py-attrs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}eccodes>=0.9.8:science/py-eccodes@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dask>=0:devel/py-dask@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scipy>=0:science/py-scipy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}xarray>=0.15:devel/py-xarray@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils pytest
+
+NO_ARCH= yes
+
+OPTIONS_DEFINE= XARRAY
+XARRAY_DESC= Xarray support
+
+XARRAY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xarray>=0.15:devel/py-xarray@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/science/py-cfgrib/distinfo b/science/py-cfgrib/distinfo
new file mode 100644
index 000000000000..fdbb45c573e8
--- /dev/null
+++ b/science/py-cfgrib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1675190917
+SHA256 (cfgrib-0.9.10.3.tar.gz) = c10806058c80c48610c201bf05eb292401807806ab9423ab4965ae23dbb6b521
+SIZE (cfgrib-0.9.10.3.tar.gz) = 6398617
diff --git a/science/py-cfgrib/pkg-descr b/science/py-cfgrib/pkg-descr
new file mode 100644
index 000000000000..ecb2037111d8
--- /dev/null
+++ b/science/py-cfgrib/pkg-descr
@@ -0,0 +1,5 @@
+cfgrib provides a Python interface to map GRIB files to the Unidata's Common
+Data Model v4 following the CF Conventions. The high level API is designed to
+support a GRIB engine for xarray and it is inspired by netCDF4-python and
+h5netcdf. Low level access and decoding is performed via the ECMWF ecCodes
+library and the eccodes python package.