Skip to main content

Agricultural ecology metrics and visualization tools.

Project description

AgroEcoMetrics

AgroEcoMetrics is a useful tool for manipulating agricultural and Ecological data

Source code: (https://github.com/wiscbicklab/AgroEcoMetrics)

Bug reports: (https://github.com/wiscbicklab/AgroEcoMetrics/issues)

Documentation: (https://wiscbicklab.github.io/AgroEcoMetrics/)

It provides:

  • Methods for calulating agricultural and ecological data
  • Methods for manipulating and cleaning agriculture and ecological data
  • Methods for visualizing agricultural and ecological data

Submodules Overview

agroecometrics.data

Provides utilities for loading, cleaning, interpolating, and saving agricultural datasets. Includes functions to:

  • Check CSV file validity
  • Load and filter data by date range
  • Interpolate missing data
  • Save processed DataFrames

agroecometrics.equations

Contains models and equations for ecological and agricultural analysis, including:

  • Evapotranspiration Models: Dalton, Penman, Hargreaves, etc.
  • Solar Radiation Calculations: Compute extraterrestrial radiation (Ra)
  • Vapor Pressure Calculations: Estimate saturation vapor pressure (esat)
  • Water Movement Models: Infiltration and hydraulic conductivity
  • Crop Models: Calculate Growing Degree Days (GDD)
  • Even More: Provides even more useful agronometric data tools

agroecometrics.visualizations

Provides methods for creating plots from the calulations made in equations.

  • Rainfall and Runoff plot
  • Air Temperature plots
  • Soil Temperature plots and 3d mesh graphs
  • Growing Degree Day Plots
  • Photoperiod Prediction plots

Getting Started

Installation

Install via pip:

pip install AgroEcoMetrics

Quick Example

from pathlib import Path
from agroecometrics as AEM
import pandas as pd

# Load your data
file_path = Path("your_weather_data.csv")
df = AEM.data.load_data(file_path)

# Create a Graph of air temperature on a particular day
air_temp_pred = AEM.equations.model_air_temp(df)
AEM.visualizations.plot_air_temp(df, air_temp_pred, Path("your_saved_plot.png"))

# Add Growing Degree Days (GDD) to your dataset
gdd_to_df(df, temp_avg=df["TempAvg"].values, temp_base=10)

# Save your CSV file with new data
AEM.data.save_data(df, Path('your_updated_data.csv'))

This script loads weather data, computes growing degree days, and adds the results to your DataFrame.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agroecometrics-0.1.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agroecometrics-0.1.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file agroecometrics-0.1.0.tar.gz.

File metadata

  • Download URL: agroecometrics-0.1.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for agroecometrics-0.1.0.tar.gz
Algorithm Hash digest
SHA256 413078cd60ab4da87bf59da12ff40da5ff62970515143b4f9451c43d94613126
MD5 ed4e04639e33e22ad078f9fdd5e7176d
BLAKE2b-256 3029983504baa9e524733bdd774b45a167493b28aa8c27130388a915e656c644

See more details on using hashes here.

File details

Details for the file agroecometrics-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agroecometrics-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for agroecometrics-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15c51364e0b52107f144e950dbf0a6efc1d45262a93b10cca5202f01bdcd2100
MD5 9e6295c946ff084bc9fa38811716a21f
BLAKE2b-256 7841b8644352f89c050788e76e572643bf3cdf06a03562818aee5253d956861a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page