# asergion/plotfuncao.py architecture

> Architecture diagram of the GitHub repository asergion/plotfuncao.py, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/asergion/plotfuncao.py
- Repository: https://github.com/asergion/plotfuncao.py

## Overview

lasviewer is a Streamlit LAS-file viewer and indexer. A user can load LAS data directly or view an indexed dataset; indexing parses the file, derives curve metadata and statistics, and writes Parquet plus JSON metadata. The app supports curve plots, crossplots, histograms, and comparison of curves across two wells. For indexed viewing, it reads selected curves from Parquet before plotting. The app excerpt is partial, so some UI-to-indexing links are unverified; those are marked dashed.

Main entry points: [`app.py`](https://github.com/asergion/plotfuncao.py/blob/main/app.py) (Viewer UI), [`src/las_indexer.py`](https://github.com/asergion/plotfuncao.py/blob/main/src/las_indexer.py) (LAS indexer), [`src/analysis.py`](https://github.com/asergion/plotfuncao.py/blob/main/src/analysis.py) (Curve analysis), [`src/las_parser.py`](https://github.com/asergion/plotfuncao.py/blob/main/src/las_parser.py) (LAS parser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Streamlit app"]
  node_app["Viewer UI<br/>[app.py]"]
end

subgraph group_indexing["LAS indexing"]
  node_indexer["LAS indexer<br/>[las_indexer.py]"]
  node_parser["LAS parser<br/>[las_parser.py]"]
end

subgraph group_analysis["Analysis and plots"]
  node_analysis["Curve analysis<br/>[analysis.py]"]
  node_plotting["Plot generation<br/>[plotting.py]"]
end

subgraph group_storage["Indexed data"]
  node_parquet["Parquet access<br/>[parquet_store.py]"]
  node_outputs["Parquet and metadata files<br/>[las_indexer.py]"]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -.->|"starts indexing"| node_indexer
node_indexer -->|"parses LAS"| node_parser
node_indexer -->|"computes statistics"| node_analysis
node_indexer -->|"writes files"| node_outputs
node_app -->|"reads selected curves"| node_parquet
node_app -->|"renders plots"| node_plotting
node_app -->|"compares wells"| node_analysis

click node_app "https://github.com/asergion/plotfuncao.py/blob/main/app.py"
click node_indexer "https://github.com/asergion/plotfuncao.py/blob/main/src/las_indexer.py"
click node_parser "https://github.com/asergion/plotfuncao.py/blob/main/src/las_parser.py"
click node_analysis "https://github.com/asergion/plotfuncao.py/blob/main/src/analysis.py"
click node_plotting "https://github.com/asergion/plotfuncao.py/blob/main/src/plotting.py"
click node_parquet "https://github.com/asergion/plotfuncao.py/blob/main/src/parquet_store.py"
click node_outputs "https://github.com/asergion/plotfuncao.py/blob/main/src/las_indexer.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_user toneBlue
class node_indexer,node_parser toneAmber
class node_analysis,node_plotting toneMint
class node_parquet,node_outputs toneRose
```

## Components

### Streamlit app

- [Viewer UI](https://github.com/asergion/plotfuncao.py/blob/main/app.py): `app.py`

### LAS indexing

- [LAS indexer](https://github.com/asergion/plotfuncao.py/blob/main/src/las_indexer.py): `src/las_indexer.py`
- [LAS parser](https://github.com/asergion/plotfuncao.py/blob/main/src/las_parser.py): `src/las_parser.py`

### Analysis and plots

- [Curve analysis](https://github.com/asergion/plotfuncao.py/blob/main/src/analysis.py): `src/analysis.py`
- [Plot generation](https://github.com/asergion/plotfuncao.py/blob/main/src/plotting.py): `src/plotting.py`

### Indexed data

- [Parquet access](https://github.com/asergion/plotfuncao.py/blob/main/src/parquet_store.py): `src/parquet_store.py`
- [Parquet and metadata files](https://github.com/asergion/plotfuncao.py/blob/main/src/las_indexer.py): `src/las_indexer.py`

### Other components

- **User**

## Connections

- User → Viewer UI: uses (evidence: `README.md`)
- Viewer UI → LAS indexer: starts indexing (evidence: `app.py`)
- LAS indexer → LAS parser: parses LAS (evidence: `src/las_indexer.py`)
- LAS indexer → Curve analysis: computes statistics (evidence: `src/las_indexer.py`)
- LAS indexer → Parquet and metadata files: writes files (evidence: `src/las_indexer.py`)
- Viewer UI → Parquet access: reads selected curves (evidence: `app.py`)
- Viewer UI → Plot generation: renders plots (evidence: `app.py`)
- Viewer UI → Curve analysis: compares wells (evidence: `app.py`)
