Skip to content

A toolset for integrating, analyzing, and visualizing Thailand's geographic data. Ideal for developers and GIS professionals. ๐Ÿ—บ๏ธ๐Ÿ“Š

License

Notifications You must be signed in to change notification settings

GeoThai/analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GeoThai Analyzer

Welcome to the GeoThai Analyzer repository! ๐ŸŒ๐Ÿ“Š This toolset is designed to integrate, analyze, and visualize Thailandโ€™s geographic data, from provinces to subdistricts. It is perfect for developers, GIS professionals, and anyone interested in Thailand's geography.

๐Ÿ“Š Data Analysis and Visualization

With this repository, you can:

  • Integrate various geographic datasets into a unified structure.
  • Analyze relationships between different geographic levels, such as the number of districts per province.
  • Visualize the data through various plots and maps to gain insights.

๐Ÿ–ผ๏ธ Images

Here are some visualizations you can create using this repository:

Districts per Province Bar chart showing the number of districts per province.

Subdistrict Distribution Pie chart displaying the distribution of subdistricts in selected districts of Bangkok.

๐Ÿ› ๏ธ Usage

To use this repository, follow these steps:

  1. Clone the repository:

    git clone https://github.com/GeoThai/analyzer.git
    cd analyzer
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the integration script:

    python scripts/integrate_data.py

    This will generate an integrated dataset saved in data/integrated_data.json.

  4. Analyze the data:

    python scripts/analyze_data.py

    This script will output key insights about the number of districts per province and subdistricts per district.

  5. Visualize the data:

    python scripts/visualize_data.py

    This will generate various visualizations such as bar charts, pie charts, and geographic maps.

๐Ÿ”ง Scripts Overview

scripts/analyze_data.py

This script analyzes the geographic data to extract meaningful insights:

  • Districts per Province: Counts the number of districts in each province.
  • Subdistricts per District: Counts the number of subdistricts in each district.
  • Key Findings: Identifies the province with the most districts and the district with the most subdistricts.

scripts/integrate_data.py

This script integrates geographic data across different levels:

  • Combines provinces, districts, and subdistricts into a single JSON file.
  • The output is a hierarchical data structure useful for advanced analysis and visualization.

scripts/visualize_data.py

This script generates visual representations of the integrated data:

  • Bar Charts: Display the number of districts per province.
  • Pie Charts: Show the distribution of subdistricts in selected districts.

๐Ÿค Contributing

We welcome contributions to enhance this project. Please read the CONTRIBUTING.md for guidelines on how to contribute.

๐Ÿ“ License

This project is licensed under the MIT License. See the LICENSE file for more details.

๐Ÿ™‹โ€โ™‚๏ธ Contact

For questions, issues, or suggestions, feel free to open an issue or contact us at pyyupsk@proton.me.

Happy analyzing! ๐Ÿ—บ๏ธ๐Ÿ“Š

About

A toolset for integrating, analyzing, and visualizing Thailand's geographic data. Ideal for developers and GIS professionals. ๐Ÿ—บ๏ธ๐Ÿ“Š

Topics

Resources

License

Stars

Watchers

Forks

Languages