CDO is a collection of command line Operators to manipulate and analyse Climate
model Data. Supported file formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
There are more than 250 operators available. The following table gives a short
overview about the main categories.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: CDO
|
|
|
|
# Date created: 29 May 2006
|
|
|
|
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2009-02-01 10:54:29 +01:00
|
|
|
PORTNAME= cdo
|
2011-03-01 03:44:32 +01:00
|
|
|
PORTVERSION= 1.4.7
|
2009-02-01 10:54:29 +01:00
|
|
|
CATEGORIES= science
|
2011-03-01 03:44:32 +01:00
|
|
|
MASTER_SITES= https://code.zmaw.de/attachments/download/704/ \
|
2010-10-01 03:14:18 +02:00
|
|
|
LOCAL/sunpoet
|
CDO is a collection of command line Operators to manipulate and analyse Climate
model Data. Supported file formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
There are more than 250 operators available. The following table gives a short
overview about the main categories.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
|
2010-09-22 19:10:26 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2009-02-01 10:54:29 +01:00
|
|
|
COMMENT= Climate Data Operators
|
CDO is a collection of command line Operators to manipulate and analyse Climate
model Data. Supported file formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
There are more than 250 operators available. The following table gives a short
overview about the main categories.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
|
2009-02-01 10:54:29 +01:00
|
|
|
GNU_CONFIGURE= yes
|
CDO is a collection of command line Operators to manipulate and analyse Climate
model Data. Supported file formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
There are more than 250 operators available. The following table gives a short
overview about the main categories.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
|
2009-02-01 10:54:29 +01:00
|
|
|
CONFIGURE_ARGS= --program-transform-name=""
|
|
|
|
CONFIGURE_ENV= CC="${CC}" \
|
|
|
|
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
CDO is a collection of command line Operators to manipulate and analyse Climate
model Data. Supported file formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
There are more than 250 operators available. The following table gives a short
overview about the main categories.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
|
2009-02-01 10:54:29 +01:00
|
|
|
PLIST_FILES= bin/cdo
|
CDO is a collection of command line Operators to manipulate and analyse Climate
model Data. Supported file formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
There are more than 250 operators available. The following table gives a short
overview about the main categories.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
|
2009-02-01 10:54:29 +01:00
|
|
|
NETCDF_VER?= 4
|
|
|
|
HDF5_VER?= 18
|
|
|
|
|
|
|
|
OPTIONS= HDF5 "HDF5 support" on \
|
2010-05-05 14:40:59 +02:00
|
|
|
JASPER "Japser support" off \
|
2009-02-01 10:54:29 +01:00
|
|
|
NETCDF "NetCDF support" on \
|
2010-05-05 14:40:59 +02:00
|
|
|
PROJ "PROJ support" on \
|
|
|
|
SZIP "SZIP support" on
|
CDO is a collection of command line Operators to manipulate and analyse Climate
model Data. Supported file formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
There are more than 250 operators available. The following table gives a short
overview about the main categories.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
|
2007-04-10 05:09:55 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-10-21 08:44:18 +02:00
|
|
|
.if (${OSVERSION} >= 700000) || (${ARCH} != "sparc64")
|
2007-04-10 05:09:55 +02:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -DPTHREAD_MUTEXATTR_CONDATTR"
|
|
|
|
.endif
|
|
|
|
|
2010-05-05 14:40:59 +02:00
|
|
|
.if (!defined(WITHOUT_NETCDF) && !defined(WITHOUT_HDF5) && (${NETCDF_VER} == 4) && (${HDF5_VER} == 16))
|
2009-02-01 10:54:29 +01:00
|
|
|
IGNORE=netCDF 4 requires HDF5 1.8.
|
|
|
|
.endif
|
|
|
|
|
2010-05-05 14:40:59 +02:00
|
|
|
.if !defined(WITHOUT_NETCDF) && (${NETCDF_VER} == 4)
|
2009-02-01 10:54:29 +01:00
|
|
|
HDF5_VER= 18
|
|
|
|
WITH_HDF5= yes
|
2008-02-17 21:35:17 +01:00
|
|
|
.endif
|
|
|
|
|
2010-05-05 14:40:59 +02:00
|
|
|
.if !defined(WITHOUT_HDF5)
|
2009-02-01 10:54:29 +01:00
|
|
|
CONFIGURE_ARGS+= --with-hdf5=${LOCALBASE} --with-zlib=/usr
|
2010-05-05 14:40:59 +02:00
|
|
|
WITH_SZIP= yes
|
2009-02-01 10:54:29 +01:00
|
|
|
.if (${HDF5_VER} == 18)
|
|
|
|
LIB_DEPENDS+= hdf5.6:${PORTSDIR}/science/hdf5-18
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= hdf5.0:${PORTSDIR}/science/hdf5
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2010-02-08 23:03:10 +01:00
|
|
|
.if defined(WITH_JASPER)
|
|
|
|
CONFIGURE_ARGS+= --with-jasper=${LOCALBASE}
|
|
|
|
LIB_DEPENDS+= jasper:${PORTSDIR}/graphics/jasper
|
|
|
|
PLIST_SUB+= JPEG2000=""
|
|
|
|
.else
|
|
|
|
.endif
|
|
|
|
|
2010-05-05 14:40:59 +02:00
|
|
|
.if !defined(WITHOUT_NETCDF)
|
2010-02-08 23:03:10 +01:00
|
|
|
CONFIGURE_ARGS+= --with-netcdf=${LOCALBASE}
|
|
|
|
.if (${NETCDF_VER} == 4)
|
|
|
|
LIB_DEPENDS+= netcdf.6:${PORTSDIR}/science/netcdf4
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
|
|
|
|
.endif
|
|
|
|
PLIST_FILES+= bin/cdotest
|
|
|
|
.endif
|
|
|
|
|
2010-05-05 14:40:59 +02:00
|
|
|
.if !defined(WITHOUT_PROJ)
|
2009-02-01 10:54:29 +01:00
|
|
|
CONFIGURE_ARGS+= --with-proj=${LOCALBASE}
|
2009-11-28 00:17:38 +01:00
|
|
|
LIB_DEPENDS+= proj.6:${PORTSDIR}/graphics/proj
|
2009-02-01 10:54:29 +01:00
|
|
|
.endif
|
|
|
|
|
2010-05-05 14:40:59 +02:00
|
|
|
.if !defined(WITHOUT_SZIP)
|
|
|
|
CONFIGURE_ARGS+= --with-szlib=${LOCALBASE}
|
|
|
|
LIB_DEPENDS+= sz.2:${PORTSDIR}/science/szip
|
|
|
|
.endif
|
|
|
|
|
2011-03-01 03:44:32 +01:00
|
|
|
post-patch:
|
|
|
|
.if !defined(WITHOUT_NETCDF)
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e '/bin_PROGRAMS = / s|$$| cdotest$$(EXEEXT)|' \
|
|
|
|
-e '/noinst_PROGRAMS = / s| cdotest$$(EXEEXT)||' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2008-02-17 21:35:17 +01:00
|
|
|
post-build:
|
2010-10-21 08:44:18 +02:00
|
|
|
.if !defined(WITHOUT_NETCDF) && (${OSVERSION} >= 700000)
|
2008-08-18 08:51:34 +02:00
|
|
|
@cd "${WRKSRC}/src" && ${SETENV} CDO_PATH="${WRKSRC}/src/cdo" "${WRKSRC}/src/cdotest"
|
CDO is a collection of command line Operators to manipulate and analyse Climate
model Data. Supported file formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
There are more than 250 operators available. The following table gives a short
overview about the main categories.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
.endif
|
|
|
|
|
2006-12-19 03:28:19 +01:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2008-08-18 08:51:34 +02:00
|
|
|
regression-test:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
|
|
|
2007-04-10 05:09:55 +02:00
|
|
|
.include <bsd.port.post.mk>
|