From nobody Fri Nov 04 11:59:09 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N3fL54qhbz4hq96; Fri, 4 Nov 2022 11:59:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N3fL544SMz3q1h; Fri, 4 Nov 2022 11:59:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667563149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XPAoknWSqCumkPyN+aOjysAlPJ29COj2ecPM1YoAfsQ=; b=w5QXpZPxHtfkyzb0e0pbu6B1eBuSVmtqtX31iV7v6g8XrrQggvgKVoD1jW2MTYlTWP7s3L jN4qOr3nGRLyAkwsIyOy89DTJjtXeOf9kfllsXWFw5YcYWYqGvxGoW2jVxFkEPP7RaUNjb uhqVmHSLOeAWS30J60YMsxozK7xwbhpd/EVoKxjf9ZaFQI1zzarX8bdFfVWp2TTq81+cup 63L8sLTMn1/4tGySHLKblawBpsgcHKWvvA3A9HeMpGlQq6Xu6HeeD+yTJPgJjSUbxUdyEZ atfs1Z2CDUAmmrUL7sUXrbk0QLhHJ/NU48ljNZYvMfAiTvuvnvMnMF6kH5iyEw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N3fL52tH9z1FHL; Fri, 4 Nov 2022 11:59:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A4Bx9RC099292; Fri, 4 Nov 2022 11:59:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A4Bx91L099291; Fri, 4 Nov 2022 11:59:09 GMT (envelope-from git) Date: Fri, 4 Nov 2022 11:59:09 GMT Message-Id: <202211041159.2A4Bx91L099291@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 8a197acffc5e - main - science/py-earthpy: adding a tool to plot and manipulate spatial data in Python List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8a197acffc5e76733ef386a7af18c08e3c98436f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667563149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XPAoknWSqCumkPyN+aOjysAlPJ29COj2ecPM1YoAfsQ=; b=ha1d7BUfSU+ZTLglYoXIxeoB44YKWuoLPeu9Jlhy7XWxbYGyPU1My2Da61nh+xruIfRqLF Pq3dRftp03xiQsiXsoApm9liXLXaLPARnGHx6hCg6AP52dRXw1FUVybC7OeJaYdH/Stwkf aNhITz/6Y2ZZ2y6/EJLUnOb5ogR0Sv1noguOr2RUdyFm5K2o6+c13SbYqjsIo1mC64JMWE yxYe5DakEl9jMJdvRom50Ks7TxXguKOxevJonWCJXBgXJxqzq3PMuxA9T2ZhvYP5pR484C cDMX6aWOchon0EEfw4ewDq//Zp8dHoeytFOFkwh1Oxkgv7OziK6NXaxJ+TGz5w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667563149; a=rsa-sha256; cv=none; b=Hx6Qyp5CC/zUUC8HjyAonLAmiyx/zDqYq035ZQqKZVEprAvpsPMoTIPxFKREK0HpJoM1q/ 4MQZgIQHfr0C6DutD0Gudtoy/VkzlPaAd/ZCno6rCuzIuKohbNYf7tDeQ2+saZaUp0LJ5w vNaJBt9oxPrWtw8wJe6bhNoqNBZ2Cla+A0WBZvaWnBJr8y+ZrgLZIlN8RuI9qbE41yTgMw Xl+DMaPHyj3EL4C9O+YJe8+8RBOLsatVcM1X9gOIk17e52mrtlRQZfBn+GSAy0oz67hxi/ r3SomNdWoMga1f4oA76V1BgxjFVVvhkhHDwYz2sDTSaCafHgfFfWRalLxZRBig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=8a197acffc5e76733ef386a7af18c08e3c98436f commit 8a197acffc5e76733ef386a7af18c08e3c98436f Author: Thierry Thomas AuthorDate: 2022-11-04 11:57:44 +0000 Commit: Thierry Thomas CommitDate: 2022-11-04 11:59:05 +0000 science/py-earthpy: adding a tool to plot and manipulate spatial data in Python --- science/Makefile | 1 + science/py-earthpy/Makefile | 30 ++++++++++++++++++++++++++++++ science/py-earthpy/distinfo | 3 +++ science/py-earthpy/pkg-descr | 24 ++++++++++++++++++++++++ science/py-earthpy/pkg-plist | 31 +++++++++++++++++++++++++++++++ 5 files changed, 89 insertions(+) diff --git a/science/Makefile b/science/Makefile index a899e6c2ae0d..14cad8237789 100644 --- a/science/Makefile +++ b/science/Makefile @@ -308,6 +308,7 @@ SUBDIR += py-dwave-system SUBDIR += py-dwave-tabu SUBDIR += py-dwavebinarycsp + SUBDIR += py-earthpy SUBDIR += py-eccodes SUBDIR += py-esda SUBDIR += py-fresnel diff --git a/science/py-earthpy/Makefile b/science/py-earthpy/Makefile new file mode 100644 index 000000000000..bff973fc68bd --- /dev/null +++ b/science/py-earthpy/Makefile @@ -0,0 +1,30 @@ +PORTNAME= earthpy +PORTVERSION= 0.9.4 +CATEGORIES= science geography python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Plot and manipulate spatial data in Python +WWW= https://github.com/earthlab/earthpy + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rasterio>=0:graphics/py-rasterio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}geopandas>=0:graphics/py-geopandas@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scikit-image>=0:graphics/py-scikit-image@${PY_FLAVOR} +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rasterio>=0:graphics/py-rasterio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}geopandas>=0:graphics/py-geopandas@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scikit-image>=0:graphics/py-scikit-image@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= distutils + +.include diff --git a/science/py-earthpy/distinfo b/science/py-earthpy/distinfo new file mode 100644 index 000000000000..c43a6ab9206a --- /dev/null +++ b/science/py-earthpy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1667554646 +SHA256 (earthpy-0.9.4.tar.gz) = 16ec2831ec87ace9d70473ef23840b6bf3cd239e178b9ddb5767da86e5a34c1b +SIZE (earthpy-0.9.4.tar.gz) = 1366501 diff --git a/science/py-earthpy/pkg-descr b/science/py-earthpy/pkg-descr new file mode 100644 index 000000000000..97d162ec1911 --- /dev/null +++ b/science/py-earthpy/pkg-descr @@ -0,0 +1,24 @@ +Python is a generic programming language designed to support many different +applications. Because of this, many commonly performed spatial tasks for science +including plotting and working with spatial data take many steps of code. +EarthPy builds upon the functionality developed for raster data (rasterio) and +vector data (geopandas) in Python and simplifies the code needed to: + +- Stack and crop raster bands from data such as Landsat into an easy to use + numpy array; +- Work with masks to set bad pixels such a those covered by clouds and + cloud-shadows to NA (mask_pixels()); +- Plot rgb (color), color infrared and other 3 band combination images + (plot_rgb()); +- Plot bands of a raster quickly using plot_bands(); +- Plot histograms for a set of raster files; +- Create discrete (categorical) legends; +- Calculate vegetation indices such as Normalized Difference Vegetation Index + (normalized_diff()); +- Create hillshade from a DEM. + +EarthPy also has an io module that allows users to + +- Quickly access pre-created data subsets used in the earth-analytics courses + hosted on www.earthdatascience.org; +- Download other datasets that they may want to use in their workflows. diff --git a/science/py-earthpy/pkg-plist b/science/py-earthpy/pkg-plist new file mode 100644 index 000000000000..34b791425c3e --- /dev/null +++ b/science/py-earthpy/pkg-plist @@ -0,0 +1,31 @@ +%%PYTHON_SITELIBDIR%%/earthpy/__init__.py +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/clip.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/clip.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/io.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/io.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/mask.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/mask.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/plot.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/plot.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/spatial.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/earthpy/__pycache__/spatial.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/earthpy/clip.py +%%PYTHON_SITELIBDIR%%/earthpy/example-data/blue.tif +%%PYTHON_SITELIBDIR%%/earthpy/example-data/colorado-counties.geojson +%%PYTHON_SITELIBDIR%%/earthpy/example-data/colorado-glaciers.geojson +%%PYTHON_SITELIBDIR%%/earthpy/example-data/continental-div-trail.geojson +%%PYTHON_SITELIBDIR%%/earthpy/example-data/epsg.json +%%PYTHON_SITELIBDIR%%/earthpy/example-data/green.tif +%%PYTHON_SITELIBDIR%%/earthpy/example-data/red.tif +%%PYTHON_SITELIBDIR%%/earthpy/example-data/rmnp-dem.tif +%%PYTHON_SITELIBDIR%%/earthpy/example-data/rmnp-rgb.tif +%%PYTHON_SITELIBDIR%%/earthpy/example-data/rmnp.dbf +%%PYTHON_SITELIBDIR%%/earthpy/example-data/rmnp.prj +%%PYTHON_SITELIBDIR%%/earthpy/example-data/rmnp.shp +%%PYTHON_SITELIBDIR%%/earthpy/example-data/rmnp.shx +%%PYTHON_SITELIBDIR%%/earthpy/io.py +%%PYTHON_SITELIBDIR%%/earthpy/mask.py +%%PYTHON_SITELIBDIR%%/earthpy/plot.py +%%PYTHON_SITELIBDIR%%/earthpy/spatial.py