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)

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
  • 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.0b1.tar.gz (17.7 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.0b1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agroecometrics-0.1.0b1.tar.gz
  • Upload date:
  • Size: 17.7 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.0b1.tar.gz
Algorithm Hash digest
SHA256 edbebbe3613d803c4758a7df98489bd3892c76e589034d2eb0aef3ed7bdc0b01
MD5 f5028467ccd0c8e19f012c368582d6d3
BLAKE2b-256 a043d1a639f18574815c82bee0ab7458b28589768ad44584622c8e201d818cae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agroecometrics-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 dad3a901d8bc067d7516a5dd0e895f294e6f2e22644d231b4a8b83201f1364b7
MD5 236945cc89c37a1f8aa7801d4c679a8e
BLAKE2b-256 807fcc4e507dfdf5d27d78a08e04a3adb95c35681140da892490c484c5def666

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