{"id":24297205,"url":"https://github.com/geopytool/geopyweb","last_synced_at":"2026-03-08T07:32:42.539Z","repository":{"id":193791847,"uuid":"238363119","full_name":"GeoPyTool/GeoPyWeb","owner":"GeoPyTool","description":"a web version of GeoPyTool","archived":false,"fork":false,"pushed_at":"2025-08-30T02:07:41.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T02:24:40.698Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GeoPyTool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-02-05T03:53:06.000Z","updated_at":"2025-08-30T02:07:44.000Z","dependencies_parsed_at":"2025-08-17T07:13:43.431Z","dependency_job_id":null,"html_url":"https://github.com/GeoPyTool/GeoPyWeb","commit_stats":null,"previous_names":["geopytool/geopyweb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GeoPyTool/GeoPyWeb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoPyTool%2FGeoPyWeb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoPyTool%2FGeoPyWeb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoPyTool%2FGeoPyWeb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoPyTool%2FGeoPyWeb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeoPyTool","download_url":"https://codeload.github.com/GeoPyTool/GeoPyWeb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoPyTool%2FGeoPyWeb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30248924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T05:41:50.788Z","status":"ssl_error","status_checked_at":"2026-03-08T05:41:39.075Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-16T19:59:16.951Z","updated_at":"2026-03-08T07:32:42.525Z","avatar_url":"https://github.com/GeoPyTool.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeoPyWeb\n\n\u003cdiv align=\"center\"\u003e\n\n![GeoPyWeb Logo](https://img.shields.io/badge/GeoPyWeb-Advanced%20Geochemical%20Analysis-blue?style=for-the-badge)\n\n**A powerful web-based platform for geochemical data analysis and visualization**\n\n[![Python](https://img.shields.io/badge/Python-3.8%2B-blue.svg)](https://python.org)\n[![Flask](https://img.shields.io/badge/Flask-2.3.3-green.svg)](https://flask.palletsprojects.com/)\n[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\n[Features](#features) • [Installation](#installation) • [Usage](#usage) • [Documentation](#documentation) • [Contributing](#contributing)\n\n\u003c/div\u003e\n\n## 🌍 Overview\n\nGeoPyWeb is a comprehensive web-based platform for geochemical data analysis and visualization. Built as a web version of the popular GeoPyTool, it provides geoscientists with an intuitive interface to upload, analyze, and visualize geochemical datasets using industry-standard diagrams and classification methods.\n\n## ✨ Features\n\n### 📊 Classification Diagrams\n- **TAS Diagram** - Total Alkali-Silica classification for volcanic rocks (Wilson et al., 1989)\n- **QAPF Diagram** - Modal classification for plutonic rocks with CIPW norm support\n\n### 📈 Variation Diagrams  \n- **Harker Diagrams** - Multi-element variation plots against SiO2\n\n### 🔬 Trace Element Analysis\n- **REE Patterns** - Rare Earth Element spider diagrams with multiple normalization standards\n  - C1 Chondrite (Sun \u0026 McDonough, 1989; Taylor \u0026 McLennan, 1985; Haskin et al., 1966; Nakamura, 1977)\n  - MORB (Sun \u0026 McDonough, 1989)\n  - UCC (Rudnick \u0026 Gao, 2003)\n- **Trace Element Spider Diagrams** - Comprehensive incompatible element patterns\n  - 6 normalization standards (PM, OIB, EMORB, C1, NMORB, UCC)\n  - 2 element sequences (Cs-Lu 36 elements, Rb-Lu 26 elements)\n  - Automatic K2O→K and TiO2→Ti conversions\n\n### 🏔️ Tectonic Discrimination\n- **Pearce Diagrams** - Granite tectonic setting discrimination (Pearce et al., 1984)\n  - 4 sub-diagrams: Y+Nb vs Rb, Yb+Ta vs Rb, Y vs Nb, Yb vs Ta\n  - Discriminates syn-COLG, VAG, WPG, and ORG granites\n\n### 🧮 Norm Calculations\n- **CIPW Norm** - Cross, Iddings, Pirsson, Washington normative mineral calculations\n- Automatic integration with QAPF diagrams\n\n### 🎨 Advanced Features\n- **Smart Column Recognition** - Automatic standardization of geochemical column names\n- **Flexible Data Input** - Support for CSV and Excel files\n- **Color-coded Samples** - Intelligent sample grouping and visualization\n- **Multiple Export Formats** - PNG and SVG output options\n- **Professional Styling** - Publication-ready diagrams with proper referencing\n\n## 🚀 Installation\n\n### Prerequisites\n- Python 3.8 or higher\n- pip package manager\n\n### Quick Start\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/GeoPyTool/GeoPyWeb.git\n   cd GeoPyWeb\n   ```\n\n2. **Install dependencies**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. **Run the application**\n   ```bash\n   python run.py\n   ```\n\n4. **Access the web interface**\n   Open your browser and navigate to `http://localhost:5000`\n\n### Docker Installation (Optional)\n\n```bash\n# Build the Docker image\ndocker build -t geopyweb .\n\n# Run the container\ndocker run -p 5000:5000 geopyweb\n```\n\n## 📖 Usage\n\n### 1. Data Upload\n- Upload your geochemical data in CSV or Excel format\n- Supported file extensions: `.csv`, `.xlsx`, `.xls`\n- Maximum file size: 16MB\n\n### 2. Data Format Requirements\n\n#### Major Elements (weight %)\n- **Required for TAS**: SiO2, Na2O, K2O\n- **Required for CIPW/QAPF**: SiO2, TiO2, Al2O3, Fe2O3, FeO, MnO, MgO, CaO, Na2O, K2O, P2O5\n- **Required for Harker**: SiO2 + any other major elements\n\n#### Trace Elements (ppm)\n- **REE Elements**: La, Ce, Pr, Nd, Sm, Eu, Gd, Tb, Dy, Ho, Er, Tm, Yb, Lu\n- **Pearce Elements**: Rb, Y, Nb, Yb, Ta\n- **Full Trace Suite**: Cs, Tl, Rb, Ba, W, Th, U, Nb, Ta, K, La, Ce, Pb, Pr, Mo, Sr, P, Nd, F, Sm, Zr, Hf, Eu, Sn, Sb, Ti, Gd, Tb, Dy, Li, Y, Ho, Er, Tm, Yb, Lu\n\n#### Optional Columns\n- **Sample Grouping**: Color, Type, Label, Group, Category, Class, Formation, Unit, Lithology\n- **Sample Information**: Age, Location, Description\n\n### 3. Column Name Recognition\n\nGeoPyWeb automatically recognizes and standardizes various column naming conventions:\n\n```\nExamples of recognized formats:\n- SiO2, SIO2, sio2, SiO2(wt%), SiO2_wt%, sio2_weight%\n- La, LA, la, La(ppm), la_ppm, La_ppb\n- K2O → K conversion, TiO2 → Ti conversion (automatic)\n```\n\n### 4. Analysis Workflow\n\n1. **Upload Data** → Automatic column standardization and preview\n2. **Select Analysis Type** → Choose from available diagram types\n3. **Configure Options** → Set normalization standards, element sequences, output format\n4. **Generate Diagram** → View results with professional styling\n5. **Download Results** → Export as PNG or SVG\n\n## 🔧 Technical Stack\n\n- **Backend**: Flask 2.3.3 (Python web framework)\n- **Data Processing**: Pandas 2.0.3, NumPy 1.24.3\n- **Visualization**: Matplotlib 3.7.2\n- **File Handling**: OpenPyXL 3.1.2 (Excel support)\n- **Frontend**: Bootstrap 5.3, HTML5, JavaScript ES6\n- **Security**: Werkzeug 2.3.7 (secure file uploads)\n\n## 📁 Project Structure\n\n```\nGeoPyWeb/\n├── run.py                 # Main Flask application\n├── requirements.txt       # Python dependencies\n├── templates/            \n│   └── index.html        # Web interface template\n├── uploads/              # Temporary file storage\n├── Geochemistry.csv      # Sample dataset\n├── README.md             # This file\n└── LICENSE               # MIT License\n```\n\n## 🔬 Scientific References\n\nThe implemented methods are based on established geochemical literature:\n\n- **TAS Classification**: Wilson, M. et al. (1989) *Journal of Petrology*\n- **Pearce Diagrams**: Pearce, J.A. et al. (1984) *Journal of Petrology*, v.25, p.956-983\n- **REE Normalization**: Sun, S.S. \u0026 McDonough, W.F. (1989); Rudnick, R.L. \u0026 Gao, S. (2003)\n- **QAPF Classification**: Maitre, R.W.L. et al. (2004) *Cambridge University Press*\n\n## 🤝 Contributing\n\nWe welcome contributions to GeoPyWeb! Here's how you can help:\n\n1. **Fork the repository**\n2. **Create a feature branch** (`git checkout -b feature/amazing-feature`)\n3. **Commit your changes** (`git commit -m 'Add amazing feature'`)\n4. **Push to the branch** (`git push origin feature/amazing-feature`)\n5. **Open a Pull Request**\n\n### Development Setup\n\n```bash\n# Install development dependencies\npip install -r requirements.txt\n\n# Run in development mode\nexport FLASK_ENV=development\npython run.py\n```\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- Original GeoPyTool development team\n- The global geochemical community for standardized methods\n- Contributors and users who provide feedback and improvements\n\n## 📞 Support\n\n- **Issues**: [GitHub Issues](https://github.com/GeoPyTool/GeoPyWeb/issues)\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**Made with ❤️ for the geoscience community**\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeopytool%2Fgeopyweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeopytool%2Fgeopyweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeopytool%2Fgeopyweb/lists"}