BSD Ports

science/py-earthpy 0.9.4_4 DragonFly

Plot and manipulate spatial data in Python

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD3CLAUSE
Categories
geography, python, science
Package size
1274.7 KiB, 2282.7 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.

In the other systems

SystemPortVersion
DragonFlyscience/py-earthpy0.9.4_4
FreeBSDscience/py-earthpy1.0.0
HardenedBSDscience/py-earthpy0.9.4_7
GhostBSDscience/py-earthpy0.9.4_7

Install

Binary package:

pkg install py311-earthpy

From DPorts:

cd /usr/dports/science/py-earthpy && make install clean

Dependencies

Run dependencies 7

No port depends on this one.