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, manipulating, and saving agricultural datasets. Includes functions to:
- Check CSV file validity
- Load and filter data by date range
- Interpolate missing data
- Save processed DataFrames
- Match date times between numpy arrays
- Get a pandas DataFrame as a dictionary
agroecometrics.equations
Contains models and equations for ecological and agricultural analysis, including:
- TEMPERATURE MODELS: Soil and Air Temperature Prediction Models.
- Evapotranspiration Models: Dalton, Penman, Hargreaves, etc.
- Crop Models: Calculate Growing Degree Days (GDD)
- Photoperiod Models: Photoperiod Predictions.
- Water Movement Models: Infiltration and hydraulic conductivity
agroecometrics.visualizations
Provides methods for creating plots from the calulations made in equations.
- Air Temperature plots
- Soil temperature plots and 3d mesh graphs
- Rainfall and runoff plot
- 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
data_path = Path("**your_weather_data.csv**")
image_path = Path("**your_saved_plot.png**")
df = AEM.data.load_data_csv(data_path, "**date_time_col_name**", start_date='2024-01-01', end_date='2024-12-31')
# Create a Graph of air temperature on a particular day
date_times = df["**date_time_col_name**"]
avg_air_temp = df['**avg_air_temp_col_name**']
air_temp_pred = AEM.equations.model_air_temp(avg_air_temp)
AEM.visualizations.plot_air_temp(avg_air_temp, air_temp_pred, date_times, image_path)
This script loads weather data filtered to only 2024, creates an air temperature models from the data, and saves a plot of the predicted temperatures from the model against the actual temperatures.
Metadata
Release files for agroecometrics 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agroecometrics-0.1.1.tar.gz | 17.6 kB | Without provenance | Details for agroecometrics-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agroecometrics-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for agroecometrics-0.1.1-py3-none-any.whl |
Total release size: 35.0 kB
Release files / agroecometrics-0.1.1.tar.gz
| Download URL | agroecometrics-0.1.1.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d88ac89730d5a7c7f192551ef17fbdedcdc5d5b6e0a5e0191089fb267ecb7649
|
|
BLAKE2b-256 checksum How to use checksums |
7a543ca4cf445802cfa1cbb649a0ec3f6ae214ef20c0017c5bc267b4c63ef3cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / agroecometrics-0.1.1-py3-none-any.whl
| Download URL | agroecometrics-0.1.1-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42df212420ab954f308f94bd26ae8e24ebf46e1a1b325dc01234e7ce9db2b7eb
|
|
BLAKE2b-256 checksum How to use checksums |
7cdad304e057847a08ff6d6b290646355a0067a3732c088b2d114316c4630792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for agroecometrics 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.