Skip to content

bhaskoro-muthohar/KaPaN

Repository files navigation

KaPaN (Kalender Padi Nusantara)

Built with ❤️ by team 4SKA1 UN Data Hackathon Winner

🏆 Award-Winning Data Analysis Project for the 2023 UN Datathon
Developed award-winning data-driven Python application; recognized as best team in Asian region.
View Certificate

KaPaN (Kalender Padi Nusantara) is an award-winning project developed for the UN Data Hackathon 2023, focusing on agricultural data analysis and visualization in Indonesia. Our innovative approach to agricultural data analysis earned us recognition as the best team in the Asian region.

📋 Table of Contents

🏆 Awards

  • UN Datathon 2023 - Asian Region Winner
    • Recognized for excellence in data-driven agricultural analysis
    • Developed innovative Python application for agricultural planning
    • View Certificate

🚀 Features

  • Real-time weather data visualization
  • Extreme weather pattern detection
  • Agricultural calendar recommendations
  • Interactive district-level data exploration
  • Data-driven agricultural planning insights
  • Advanced weather pattern analysis

💻 Installation

Prerequisites

  • Python 3.x
  • Git

Local Setup

  1. Clone the repository
git clone [email protected]:bhaskoro-muthohar/kapan.git
cd kapan
  1. Create and activate virtual environment
# Create virtual environment
python -m venv venv

# Activate virtual environment
# For Unix/macOS
source venv/bin/activate
# For Windows
.\venv\Scripts\activate
  1. Install dependencies
pip install -r requirements.txt

🔄 Data Processing

Data Directory Structure

data/
├── giovanni/
├── opendatajabar/
└── processed/

Processing Steps

  1. Extract raw data from NetCDF files to CSV:
python scripts/convert_nc_to_csv.py humidityrelative
python scripts/convert_nc_to_csv.py humidityspecific
python scripts/convert_nc_to_csv.py precipitation
python scripts/convert_nc_to_csv.py shortwavenet
python scripts/convert_nc_to_csv.py temperature
python scripts/convert_nc_to_csv.py windspeed
  1. Combine CSV files by metric:
python scripts/combine_csv.py humidityrelative
python scripts/combine_csv.py humidityspecific
python scripts/combine_csv.py precipitation
python scripts/combine_csv.py shortwavenet
python scripts/combine_csv.py temperature
python scripts/combine_csv.py windspeed
  1. Generate extreme weather markers:
python scripts/mark_extremes.py

🖥️ Usage

Run the Streamlit application:

streamlit run streamlit_app.py

The application will be available at http://localhost:8501/

🚀 Deployment

Streamlit Cloud (Recommended)

Deploy directly to Streamlit Cloud for the easiest setup.

For alternative deployment options, refer to the Streamlit deployment wiki.

👥 Contributors

Team 4SKA1:

📊 Data Sources

This project utilizes data from various sources:

  • Open Data Jabar

  • NASA/AIRS Project

    • Dataset: Aqua/AIRS L3 Daily Standard Physical Retrieval (AIRS-only)
    • Version: V7.0
    • DOI: 10.5067/UO3Q64CTTS1U
  • Global Modeling and Assimilation Office (GMAO)

    • Dataset: MERRA-2 instM_2d_lfo_Nx
    • Version: V5.12.4
    • DOI: 10.5067/11F99Y6TXN99
  • GPM IMERG

    • Dataset: Early Precipitation L3
    • Version: V06
    • DOI: 10.5067/GPM/IMERGDE/DAY/06
  • FLDAS Noah Land Surface Model

    • Version: GDAS and CHIRPS-PRELIM
    • DOI: 10.5067/L8GPRQWAWHE3
  • GLDAS Catchment Land Surface Model

    • Version: V2.2
    • DOI: 10.5067/TXBMLX370XX8

🙏 Acknowledgments

This package was created with:


UN Data Hackathon 2023 Winner

About

Kalender Padi Nusantara

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE_streamlit_cheatsheet

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •