# yohanesnuwara/open-geoscience-repository architecture

> Architecture diagram of the GitHub repository yohanesnuwara/open-geoscience-repository, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yohanesnuwara/open-geoscience-repository
- Repository: https://github.com/yohanesnuwara/open-geoscience-repository

## Overview

##### Overall purpose and project type
- The repository is a collection of geoscience data-access tutorials.
- Its main goal is to guide users (via Jupyter/Colab notebooks) through workflows to access large datasets stored in external sources (like Google Drive or other public data portals).
- The architecture primarily revolves around data ingestion and processing using Python libraries (e.g., segyio, lasio) and emphasizes cloud execution using Google Colab.

##### Main components
a. Tutorial/Data Access Modules:
– Represent each folder (e.g., “canning-3d”, “dutch-f3”, “geolink-northsea”, “poseidon”) as individual modules/tutorials within the repository.
– Represent individual notebooks (how_to_access_gdr_openei.ipynb, how_to_access_public_geoscience_data.ipynb, how_to_open_seg_wiki.ipynb, etc.) as key workflow components.

b. External Data Sources:
– Google Drive (with its “Public geoscience Data” folder)
– SEG Wiki pages
– GDR OpenEI for geothermal data
– Other external databases (e.g., MSEEL, KGS Repository, etc. mentioned in the README)

c. Cloud Environment and Execution Platform:
– Google Colaboratory to run the Jupyter notebooks
– A note on local execution may also be added, but Colab is emphasized due to large dataset handling.

d. Supporting Libraries and Tools:

##### Architectural patterns and design principles
- Modular Structure: Each dataset/tutor tutorial is encapsulated in its own directory, suggesting a modular approach.
- Cloud-based Processing: Emphasize the pattern where data remains stored externally (e.g., in Google Drive) while processing occurs on a cloud-based notebook platform.
- Data Flow Design: Illustrate a clear data flow from external sources to notebooks and onward to local or cloud outputs.

##### Final suggestions
– Ensure that every component has an explicit role.
– Be as detailed as possible. Even though the project is modular and mostly tutorial-oriented, capturing every distinct data workflow (each notebook/folder) helps in understanding the overall architecture.

## Diagram (Mermaid)

```mermaid
flowchart TD
    user["User"]
    colab["Google Colab Environment"]:::platform

    subgraph "Tutorials/Notebooks"
        subgraph "Root Notebooks"
            gdrOpenEI["How to Access GDR OpenEI"]:::processing
            mseel["How to Access MSEEL"]:::processing
            publicData["How to Access Public Geoscience Data"]:::processing
            segWiki["How to Open SEG Wiki"]:::processing
            dlis["Open DLIS File"]:::processing
        end
        subgraph "Tutorial Modules"
            canning3d["Canning 3D Tutorials"]:::processing
            subgraph "Dutch F3 Tutorials"
                dutchF3Op["dutch_f3_from_opendtect.ipynb"]:::processing
                dutchF3Spec["dutch_f3_spectrum.ipynb"]:::processing
                dutchF3Sob["sobel_implementation_seismic.ipynb"]:::processing
            end
            geolinkNorthsea["GEOLINK Northsea Tutorials"]:::processing
            poseidon["Poseidon Tutorials"]:::processing
        end
    end

    subgraph "External Data Sources"
        googleDrive["Google Drive (Public Data)"]:::external
        segWikiExt["SEG Wiki Pages"]:::external
        gdrOpenEIExt["GDR OpenEI"]:::external
        otherExt["Other External Databases"]:::external
    end

    libraries["Python Libraries (segyio, lasio)"]:::library

    %% Connections
    user -->|"launches"| colab
    colab -->|"executes"| gdrOpenEI
    colab -->|"executes"| mseel
    colab -->|"executes"| publicData
    colab -->|"executes"| segWiki
    colab -->|"executes"| dlis
    colab -->|"executes"| canning3d
    colab -->|"executes"| dutchF3Op
    colab -->|"executes"| dutchF3Spec
    colab -->|"executes"| dutchF3Sob
    colab -->|"executes"| geolinkNorthsea
    colab -->|"executes"| poseidon

    publicData -->|"fetches"| googleDrive
    segWiki -->|"fetches"| segWikiExt
    gdrOpenEI -->|"fetches"| gdrOpenEIExt
    mseel -->|"fetches"| otherExt

    gdrOpenEI -->|"uses"| libraries
    segWiki -->|"uses"| libraries
    publicData -->|"uses"| libraries
    mseel -->|"uses"| libraries

    %% Click Events
    click canning3d "https://github.com/yohanesnuwara/open-geoscience-repository/tree/master/canning-3d"
    click dutchF3Op "https://github.com/yohanesnuwara/open-geoscience-repository/blob/master/dutch-f3/dutch_f3_from_opendtect.ipynb"
    click dutchF3Spec "https://github.com/yohanesnuwara/open-geoscience-repository/blob/master/dutch-f3/dutch_f3_spectrum.ipynb"
    click dutchF3Sob "https://github.com/yohanesnuwara/open-geoscience-repository/blob/master/dutch-f3/sobel_implementation_seismic.ipynb"
    click geolinkNorthsea "https://github.com/yohanesnuwara/open-geoscience-repository/tree/master/geolink-northsea"
    click poseidon "https://github.com/yohanesnuwara/open-geoscience-repository/tree/master/poseidon"
    click gdrOpenEI "https://github.com/yohanesnuwara/open-geoscience-repository/blob/master/how_to_access_gdr_openei.ipynb"
    click mseel "https://github.com/yohanesnuwara/open-geoscience-repository/blob/master/how_to_access_mseel.ipynb"
    click publicData "https://github.com/yohanesnuwara/open-geoscience-repository/blob/master/how_to_access_public_geoscience_data.ipynb"
    click segWiki "https://github.com/yohanesnuwara/open-geoscience-repository/blob/master/how_to_open_seg_wiki.ipynb"
    click dlis "https://github.com/yohanesnuwara/open-geoscience-repository/blob/master/open_dlis_file.ipynb"

    %% Styles
    classDef external fill:#ADD8E6,stroke:#0000FF,stroke-width:2px;
    classDef processing fill:#90EE90,stroke:#008000,stroke-width:2px;
    classDef platform fill:#FFA500,stroke:#FF8C00,stroke-width:2px;
    classDef library fill:#DDA0DD,stroke:#800080,stroke-width:2px;
```
