# zablonrioba/ecoscope architecture

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

- Interactive diagram: https://gitdiagram.com/zablonrioba/ecoscope
- Repository: https://github.com/zablonrioba/ecoscope

## Overview

Ecoscope is a Python conservation-analysis library. A typical user workflow brings tracking or environmental data into the library, represents movement as relocations and trajectories, runs movement or environmental analyses, and explores results through maps or plots. The README also documents EarthRanger, Google Earth Engine, Landscape Dynamics, MoveBank, geofencing, immobility, seasonal and anomaly analyses, and covariate labeling. Several workflow links below are documented capabilities rather than inspected runtime calls; those links are dashed where implementation wiring was not shown.

Main entry points: [`ecoscope/io/eetools.py`](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/io/eetools.py) (Earth Engine tools), [`ecoscope/base/base.py`](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/base/base.py) (Relocations and trajectories), [`ecoscope/io/earthranger.py`](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/io/earthranger.py) (EarthRanger I/O), [`ecoscope/analysis/UD/etd_range.py`](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/UD/etd_range.py) (ETD home range)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_io["Data I/O"]
  node_earthranger_io["EarthRanger I/O<br/>[earthranger.py]"]
  node_gee_tools["Earth Engine tools<br/>[eetools.py]"]
  node_geemap["Geemap helpers<br/>[geemap.py]"]
  node_raster_io["Raster I/O<br/>[raster.py]"]
end

subgraph group_movement["Movement Data"]
  node_speed["Speed analysis<br/>[speed.py]"]
  node_ecograph["EcoGraph<br/>[ecograph.py]"]
  node_etd["ETD home range<br/>[etd_range.py]"]
  node_geofence["Geofencing<br/>[geofence.py]"]
  node_immobility["Immobility<br/>[immobility.py]"]
  node_movement_other["Proximity and movement metrics"]
end

subgraph group_analysis["Analysis"]
  node_environmental["Environmental and seasonal analysis"]
  node_covariates["Covariate labeling<br/>[eetools.py]"]
end

subgraph group_visualization["Visualization"]
  node_mapping["EcoMap<br/>[map.py]"]
  node_plotting["EcoPlot<br/>[plot.py]"]
end

subgraph group_core["Core Models"]
  node_relocations["Relocations and trajectories<br/>[base.py]"]
  node_movement_filters["Movement filters<br/>[_dataclasses.py]"]
  node_movement_utils["Spatial and temporal utilities<br/>[utils.py]"]
  node_package_init["Package initialization<br/>[__init__.py]"]
end

node_user(("Analyst"))
node_earthranger_service[("EarthRanger")]
node_gee_service[("Google Earth Engine")]

node_user -.->|"loads data"| node_earthranger_io
node_earthranger_io -.->|"requests data"| node_earthranger_service
node_user -.->|"analyzes imagery"| node_gee_tools
node_gee_tools -.->|"queries imagery"| node_gee_service
node_user -.->|"prepares movement"| node_relocations
node_relocations -->|"applies filters"| node_movement_filters
node_relocations -->|"uses utilities"| node_movement_utils
node_user -.->|"analyzes movement"| node_speed
node_user -.->|"builds movement graph"| node_ecograph
node_user -.->|"estimates home range"| node_etd
node_etd -->|"accepts trajectories"| node_relocations
node_etd -->|"uses raster profile"| node_raster_io
node_user -.->|"runs geofencing"| node_geofence
node_user -.->|"analyzes immobility"| node_immobility
node_user -.->|"analyzes movement"| node_movement_other
node_user -.->|"runs analyses"| node_environmental
node_gee_tools -.->|"labels covariates"| node_covariates
node_gee_tools -->|"uses helpers"| node_geemap
node_user -.->|"maps results"| node_mapping
node_mapping -->|"uses speed data"| node_speed
node_mapping -->|"uses I/O package"| node_earthranger_io
node_user -.->|"plots results"| node_plotting
node_package_init -->|"imports base"| node_movement_utils
node_package_init -->|"imports I/O"| node_earthranger_io

click node_earthranger_io "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/io/earthranger.py"
click node_gee_tools "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/io/eetools.py"
click node_geemap "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/contrib/geemap.py"
click node_raster_io "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/io/raster.py"
click node_relocations "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/base/base.py"
click node_movement_filters "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/base/_dataclasses.py"
click node_movement_utils "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/base/utils.py"
click node_speed "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/speed.py"
click node_ecograph "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/ecograph.py"
click node_etd "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/UD/etd_range.py"
click node_geofence "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/geofence.py"
click node_immobility "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/immobility.py"
click node_movement_other "https://github.com/zablonrioba/ecoscope/tree/master/ecoscope/analysis"
click node_environmental "https://github.com/zablonrioba/ecoscope/tree/master/ecoscope/analysis"
click node_covariates "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/io/eetools.py"
click node_mapping "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/mapping/map.py"
click node_plotting "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/plotting/plot.py"
click node_package_init "https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/__init__.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_earthranger_io,node_gee_tools,node_geemap,node_raster_io toneBlue
class node_speed,node_ecograph,node_etd,node_geofence,node_immobility,node_movement_other,node_earthranger_service,node_gee_service toneAmber
class node_environmental,node_covariates toneMint
class node_mapping,node_plotting toneRose
class node_relocations,node_movement_filters,node_movement_utils,node_package_init,node_user toneIndigo
```

## Components

### Data I/O

- [EarthRanger I/O](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/io/earthranger.py): `ecoscope/io/earthranger.py`
- [Earth Engine tools](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/io/eetools.py): `ecoscope/io/eetools.py`
- [Geemap helpers](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/contrib/geemap.py): `ecoscope/contrib/geemap.py`
- [Raster I/O](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/io/raster.py): `ecoscope/io/raster.py`

### Movement Data

- [Speed analysis](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/speed.py): `ecoscope/analysis/speed.py`
- [EcoGraph](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/ecograph.py): `ecoscope/analysis/ecograph.py`
- [ETD home range](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/UD/etd_range.py): `ecoscope/analysis/UD/etd_range.py`
- [Geofencing](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/geofence.py): `ecoscope/analysis/geofence.py`
- [Immobility](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/analysis/immobility.py): `ecoscope/analysis/immobility.py`
- [Proximity and movement metrics](https://github.com/zablonrioba/ecoscope/tree/master/ecoscope/analysis): `ecoscope/analysis`

### Analysis

- [Environmental and seasonal analysis](https://github.com/zablonrioba/ecoscope/tree/master/ecoscope/analysis): `ecoscope/analysis`
- [Covariate labeling](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/io/eetools.py): `ecoscope/io/eetools.py`

### Visualization

- [EcoMap](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/mapping/map.py): `ecoscope/mapping/map.py`
- [EcoPlot](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/plotting/plot.py): `ecoscope/plotting/plot.py`

### Core Models

- [Relocations and trajectories](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/base/base.py): `ecoscope/base/base.py`
- [Movement filters](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/base/_dataclasses.py): `ecoscope/base/_dataclasses.py`
- [Spatial and temporal utilities](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/base/utils.py): `ecoscope/base/utils.py`
- [Package initialization](https://github.com/zablonrioba/ecoscope/blob/master/ecoscope/__init__.py): `ecoscope/__init__.py`

### Other components

- **Analyst**
- **EarthRanger**
- **Google Earth Engine**

## Connections

- Analyst → EarthRanger I/O: loads data (evidence: `README.rst`)
- EarthRanger I/O → EarthRanger: requests data (evidence: `README.rst`)
- Analyst → Earth Engine tools: analyzes imagery (evidence: `README.rst`)
- Earth Engine tools → Google Earth Engine: queries imagery (evidence: `README.rst`)
- Analyst → Relocations and trajectories: prepares movement (evidence: `README.rst`)
- Relocations and trajectories → Movement filters: applies filters (evidence: `ecoscope/base/base.py`)
- Relocations and trajectories → Spatial and temporal utilities: uses utilities (evidence: `ecoscope/base/base.py`)
- Analyst → Speed analysis: analyzes movement (evidence: `README.rst`)
- Analyst → EcoGraph: builds movement graph (evidence: `README.rst`)
- Analyst → ETD home range: estimates home range (evidence: `README.rst`)
- ETD home range → Relocations and trajectories: accepts trajectories (evidence: `ecoscope/analysis/UD/etd_range.py`)
- ETD home range → Raster I/O: uses raster profile (evidence: `ecoscope/analysis/UD/etd_range.py`)
- Analyst → Geofencing: runs geofencing (evidence: `README.rst`)
- Analyst → Immobility: analyzes immobility (evidence: `README.rst`)
- Analyst → Proximity and movement metrics: analyzes movement (evidence: `README.rst`)
- Analyst → Environmental and seasonal analysis: runs analyses (evidence: `README.rst`)
- Earth Engine tools → Covariate labeling: labels covariates (evidence: `ecoscope/io/eetools.py`)
- Earth Engine tools → Geemap helpers: uses helpers (evidence: `ecoscope/io/eetools.py`)
- Analyst → EcoMap: maps results (evidence: `README.rst`)
- EcoMap → Speed analysis: uses speed data (evidence: `ecoscope/mapping/map.py`)
- EcoMap → EarthRanger I/O: uses I/O package (evidence: `ecoscope/mapping/map.py`)
- Analyst → EcoPlot: plots results (evidence: `README.rst`)
- Package initialization → Spatial and temporal utilities: imports base (evidence: `ecoscope/__init__.py`)
- Package initialization → EarthRanger I/O: imports I/O (evidence: `ecoscope/__init__.py`)
