Soil texture triangle plotting and classification
Project description
Soil Texture Plot
This repository contains codebase for soil texture classification and visualization using ternary diagrams. It provides tools to plot soil texture data on texture triangles and classify soil samples according to different classification systems.
Features
- Ternary Plotting: Visualize soil texture data on interactive ternary diagrams
- Multiple Classification Systems: Support for USDA and HYPRES soil texture classification systems
- Interactive Web App: Streamlit-based application for easy data upload and visualization
- Flexible Data Input: Support for CSV files with customizable column mapping
- Point Classification: Automatic classification of soil samples into texture classes
- Customizable Visualization: Control point sizes, colors, and labels
Dependencies
- streamlit
- pandas
- numpy
- matplotlib
- mpltern
Web Application
The web app allows you to:
- Upload CSV files with soil texture data
- Map columns to sand, silt, and clay percentages
- Visualize data on interactive texture triangles
- Customize plot appearance
Supported Classification Systems
USDA (United States Department of Agriculture)
The standard USDA soil texture classification system with 12 texture classes.
HYPRES (HYdraulic PRoperties of European Soils)
A European framework for classifying soils based on their hydrologic properties.
Data Format
Your CSV file should contain soil texture data with percentages of sand, silt, and clay. The percentages should sum to 100% for each sample.
Example data format:
sample_id,sand,silt,clay
S1,65,20,15
S2,70,24,6
S3,75,21,4
Acknowledgments
- Built using mpltern for ternary plotting
- Inspired by soil science classification standards
- Streamlit for the web interface
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file soiltextureplot-0.1.0.tar.gz.
File metadata
- Download URL: soiltextureplot-0.1.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e899c7bb6f1eafc878189a7b1db65e64b0e73d7d8a449fd1c3683ba11cf0f063
|
|
| MD5 |
5f6d905093ba9f212ebff8a827b517b8
|
|
| BLAKE2b-256 |
758f5937442cca60631654be36d8f294570374d146995d2b7685ccf8d7e0649a
|
File details
Details for the file soiltextureplot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: soiltextureplot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4fd4e7358d7aed7ea1b6c2b8e73f829fd7db78c7a91e770dfe8d4fdb9e1da94
|
|
| MD5 |
09cc49821d9e7d09330aa1f4a6109164
|
|
| BLAKE2b-256 |
601cb459035bb38139b32b9d99f37d453aa9468ced3c2ee2b4847086adf20b2d
|