science/py-earthpy 1.0.0
Plot and manipulate spatial data in Python
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
6f2e1206d7- License
- BSD3CLAUSE
- Categories
- science, geography, python
- Package size
- 1312.1 KiB, 2270.1 KiB installed
Description
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.
Install
As a binary package — by origin, or by package name:
pkg install science/py-earthpy
pkg install py312-earthpy
From the ports tree:
cd /usr/ports/science/py-earthpy/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-earthpy>0:science/py-earthpy
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.9.4_7 | 1.0.0 | - | 0.9.4_4 | 1.0.0 |
| FreeBSD:14:quarterly | 0.9.4_7 | 0.9.4_7 | n/a | 0.9.4_4 | 0.9.4_7 |
| FreeBSD:15:latest | 1.0.0 | 1.0.0 | n/a | 0.9.4_4 | 0.9.4_4 |
| FreeBSD:15:quarterly | 0.9.4_7 | 0.9.4_7 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.9.4_7 | 1.0.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 9
${PYTHON_PKGNAMEPREFIX}wheel>0: devel/py-wheel${PYTHON_PKGNAMEPREFIX}numpy>=1.16: math/py-numpy${PYTHON_PKGNAMEPREFIX}requests>=0: www/py-requests${PYTHON_PKGNAMEPREFIX}keyring>=0: security/py-keyring${PYTHON_PKGNAMEPREFIX}rasterio>=0: graphics/py-rasterio${PYTHON_PKGNAMEPREFIX}matplotlib>=0: math/py-matplotlib${PYTHON_PKGNAMEPREFIX}geopandas>=0: graphics/py-geopandas${PYTHON_PKGNAMEPREFIX}platformdirs>=0: devel/py-platformdirs${PYTHON_PKGNAMEPREFIX}scikit-image>=0: graphics/py-scikit-image
Runtime 8
${PYTHON_PKGNAMEPREFIX}numpy>=1.16: math/py-numpy${PYTHON_PKGNAMEPREFIX}requests>=0: www/py-requests${PYTHON_PKGNAMEPREFIX}keyring>=0: security/py-keyring${PYTHON_PKGNAMEPREFIX}rasterio>=0: graphics/py-rasterio${PYTHON_PKGNAMEPREFIX}matplotlib>=0: math/py-matplotlib${PYTHON_PKGNAMEPREFIX}geopandas>=0: graphics/py-geopandas${PYTHON_PKGNAMEPREFIX}platformdirs>=0: devel/py-platformdirs${PYTHON_PKGNAMEPREFIX}scikit-image>=0: graphics/py-scikit-image
The full lists below include those, and their dependencies in turn.
All build dependencies 227
- archivers/brotli
- archivers/libdeflate
- archivers/liblz4
- archivers/lzo2
- archivers/minizip
- archivers/py-brotli
- archivers/py-zopfli
- archivers/zopfli
- archivers/zstd
- audio/lame
- audio/libogg
- audio/libvorbis
- audio/mpg123
- audio/opus
- converters/fribidi
- converters/libiconv
- databases/postgresql18-client
- databases/py-sqlite3
- databases/sfcgal
- databases/spatialite
- databases/sqlite3
- devel/binutils
- devel/boost-libs
- devel/dbus
- devel/gettext-runtime
- devel/glib20
- devel/gobject-introspection
- devel/icu
- devel/json-c
- devel/libdatrie
- devel/libedit
- devel/libffi
- devel/libinotify
- devel/libltdl
- devel/librttopo
- devel/libthai
- devel/libunistring
- devel/npth
- devel/nspr
- devel/pcre2
- devel/pkgconf
- devel/py-attrs
- devel/py-build
- devel/py-cffi
- devel/py-click
- devel/py-cycler
- devel/py-dbus
- devel/py-importlib-metadata
- devel/py-installer
- devel/py-jaraco.classes
- devel/py-jaraco.context
- devel/py-jaraco.functools
- devel/py-jeepney
- devel/py-lazy_loader
- devel/py-lxml
- devel/py-more-itertools
- devel/py-olefile
- devel/py-packaging
- devel/py-platformdirs
- devel/py-pycparser
- devel/py-pygobject
- devel/py-pyparsing
- devel/py-pyproject-hooks
- devel/py-python-dateutil
- devel/py-pytz
- devel/py-pyyaml
- devel/py-setuptools
- devel/py-shapely
- devel/py-six
- devel/py-tzdata
- devel/py-unicodedata2
- devel/py-wheel
- devel/py-zipp
- devel/pygobject-common
- devel/readline
- dns/libidn2
- dns/libpsl
- dns/py-idna
- ftp/curl
- graphics/cairo
- graphics/freeimage
- graphics/gd
- graphics/gdal
- graphics/gdk-pixbuf2
- graphics/geos
- graphics/giflib
- graphics/graphite2
- graphics/graphviz
- graphics/jbigkit
- graphics/jpeg-turbo
- graphics/lcms2
- graphics/lerc
- graphics/libavif
- graphics/libgeotiff
- graphics/libimagequant
- graphics/libyuv
- graphics/openjpeg
- graphics/png
- graphics/poppler
- graphics/poppler-data
The first 100 are listed.
All run dependencies 223
- archivers/brotli
- archivers/libdeflate
- archivers/liblz4
- archivers/lzo2
- archivers/minizip
- archivers/py-brotli
- archivers/py-zopfli
- archivers/zopfli
- archivers/zstd
- audio/lame
- audio/libogg
- audio/libvorbis
- audio/mpg123
- audio/opus
- converters/fribidi
- converters/libiconv
- databases/postgresql18-client
- databases/py-sqlite3
- databases/sfcgal
- databases/spatialite
- databases/sqlite3
- devel/binutils
- devel/boost-libs
- devel/dbus
- devel/gettext-runtime
- devel/glib20
- devel/gobject-introspection
- devel/icu
- devel/json-c
- devel/libdatrie
- devel/libedit
- devel/libffi
- devel/libinotify
- devel/libltdl
- devel/librttopo
- devel/libthai
- devel/libunistring
- devel/npth
- devel/nspr
- devel/pcre2
- devel/pkgconf
- devel/py-attrs
- devel/py-cffi
- devel/py-click
- devel/py-cycler
- devel/py-dbus
- devel/py-importlib-metadata
- devel/py-jaraco.classes
- devel/py-jaraco.context
- devel/py-jaraco.functools
- devel/py-jeepney
- devel/py-lazy_loader
- devel/py-lxml
- devel/py-more-itertools
- devel/py-olefile
- devel/py-packaging
- devel/py-platformdirs
- devel/py-pycparser
- devel/py-pygobject
- devel/py-pyparsing
- devel/py-python-dateutil
- devel/py-pytz
- devel/py-pyyaml
- devel/py-setuptools
- devel/py-shapely
- devel/py-six
- devel/py-tzdata
- devel/py-unicodedata2
- devel/py-zipp
- devel/pygobject-common
- devel/readline
- dns/libidn2
- dns/libpsl
- dns/py-idna
- ftp/curl
- graphics/cairo
- graphics/freeimage
- graphics/gd
- graphics/gdal
- graphics/gdk-pixbuf2
- graphics/geos
- graphics/giflib
- graphics/graphite2
- graphics/graphviz
- graphics/jbigkit
- graphics/jpeg-turbo
- graphics/lcms2
- graphics/lerc
- graphics/libavif
- graphics/libgeotiff
- graphics/libimagequant
- graphics/libyuv
- graphics/openjpeg
- graphics/png
- graphics/poppler
- graphics/poppler-data
- graphics/proj
- graphics/py-gdal
- graphics/py-geopandas
- graphics/py-imageio
The first 100 are listed.
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
pkg-plist 123
- %%PYTHON_SITELIBDIR%%/earthpy-1.0.0.dist-info/LICENSE
- %%PYTHON_SITELIBDIR%%/earthpy-1.0.0.dist-info/METADATA
- %%PYTHON_SITELIBDIR%%/earthpy-1.0.0.dist-info/RECORD
- %%PYTHON_SITELIBDIR%%/earthpy-1.0.0.dist-info/WHEEL
- %%PYTHON_SITELIBDIR%%/earthpy-1.0.0.dist-info/top_level.txt
- %%PYTHON_SITELIBDIR%%/earthpy/__init__.py
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/__init__.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/__init__.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/clip.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/clip.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/config.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/config.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/io.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/io.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/mask.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/mask.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/plot.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/plot.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/project.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/project.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/spatial.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/__pycache__/spatial.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/api/__init__.py
- %%PYTHON_SITELIBDIR%%/earthpy/api/__pycache__/__init__.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/api/__pycache__/__init__.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/api/__pycache__/api.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/api/__pycache__/api.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/api/__pycache__/appeears.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/api/__pycache__/appeears.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/api/__pycache__/auth.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/api/__pycache__/auth.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/api/api.py
- %%PYTHON_SITELIBDIR%%/earthpy/api/appeears.py
- %%PYTHON_SITELIBDIR%%/earthpy/api/auth.py
- %%PYTHON_SITELIBDIR%%/earthpy/clip.py
- %%PYTHON_SITELIBDIR%%/earthpy/config.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/project.py
- %%PYTHON_SITELIBDIR%%/earthpy/spatial.py
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__init__.py
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/__init__.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/__init__.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/conftest.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/conftest.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test__stack_bands.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test__stack_bands.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_appeears.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_appeears.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_authenticator.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_authenticator.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_bytescale.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_bytescale.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_clip.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_clip.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_crop_all.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_crop_all.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_crop_image.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_crop_image.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_epsg.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_epsg.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_extent_to_json.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_extent_to_json.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_hillshade.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_hillshade.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_hist.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_hist.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_io.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_io.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_mask.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_mask.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_norm_diff.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_norm_diff.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_plot.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_plot.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_plot_bands.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_plot_bands.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_plot_draw_legend.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_plot_draw_legend.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_plot_rgb.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_plot_rgb.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_project.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_project.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_stack.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_stack.pyc
- %%PYTHON_SITELIBDIR%%/earthpy/tests/__pycache__/test_stack_raster_tifs.opt-1.pyc
The first 100 are listed.
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| earthpy-1.0.0.tar.gz | 1.397792e+06 | 3d068ebe003af3a7604c2ec729a440801aac89aca7f2e80297318e7dd3fe2b8c |
Master sites 1
- PYPI