Table of contents

i.ai - AI Assistant for GRASS GIS

i.ai - AI Assistant for GRASS GIS

DESCRIPTION

i.ai is an AI assistant that integrates Ollama LLM with GRASS GIS for comprehensive geospatial analysis and remote sensing workflows. It provides intelligent assistance with full knowledge of GRASS GIS modules, GDAL tools, and system utilities.

KEY FEATURES

USAGE

Basic Usage

i.ai "your question"

With Options

i.ai "calculate NDVI" model=llama3.1:latest -e

Interactive Mode

i.ai "help me with terrain analysis" -i

In interactive mode, type 'i.ai close' to return to GRASS CLI.

System Information

i.ai "test" -s

OPTIONS

Parameters

Flags

EXAMPLES

Remote Sensing

# Calculate NDVI
i.ai "calculate NDVI from Sentinel-2 bands"

# Land cover classification
i.ai "perform supervised classification on satellite image"

# Time series analysis
i.ai "create vegetation index time series from MODIS data"

Terrain Analysis

# Basic terrain analysis
i.ai "calculate slope and aspect from DEM"

# Watershed delineation
i.ai "delineate watersheds from elevation data"

# Viewshed analysis
i.ai "perform viewshed analysis from observation points"

Data Management

# Import data
i.ai "import GeoTIFF files into GRASS"

# Reprojection
i.ai "reproject data to UTM zone 33N"

# Export results
i.ai "export raster maps to GeoTIFF format"

With Command Execution

# Execute suggested commands automatically
i.ai "import all GeoTIFF files and create NDVI" -e

REQUIREMENTS

SETUP

Install Ollama

curl -fsSL https://ollama.com/install.sh | sh
ollama serve &
ollama pull llama3.1:latest

Install Addon

# Copy to GRASS addons directory
cp i.ai.py ~/.grass8/addons/scripts/i.ai
chmod +x ~/.grass8/addons/scripts/i.ai

SYSTEM CAPABILITIES

i.ai has comprehensive knowledge of:

GRASS GIS Modules (110+ total)

GDAL Tools

System Tools

TROUBLESHOOTING

Ollama Service Issues

# Check if running
ps aux | grep ollama

# Start service
ollama serve &

# Check models
ollama list

Common Errors

AUTHOR

i.ai - AI Assistant for GRASS GIS

SEE ALSO