Geospatial analysis

From beita6969/ScienceClaw · View interactive version

Geospatial analysis is an AI agent skill from the GitHub repository beita6969/ScienceClaw. Performs geospatial data analysis including GIS operations, spatial statistics, remote sensing image processing, geocoding, and cartographic visualization; trigger when users discuss maps, coordinates, satellite imagery, spatial patterns, or geographic data.

How to use this skill

Skill file

When to Trigger

Activate this skill when the user mentions:

Step-by-Step Methodology

  1. Data acquisition and format assessment - Identify data types: vector (points, lines, polygons in shapefile/GeoJSON/GeoPackage) or raster (GeoTIFF, NetCDF). Determine coordinate reference system (CRS). Check for common issues: mixed CRS, topology errors, missing geometries.
  2. Projection and transformation - Ensure all layers share the same CRS. Use geographic CRS (WGS84/EPSG:4326) for global data, projected CRS (UTM, state plane) for area/distance calculations. Apply appropriate datum transformation.
  3. Spatial operations - Perform geoprocessing: buffer, intersect, union, clip, dissolve. For point data: spatial joins, nearest neighbor analysis. For raster: reclassification, map algebra, zonal statistics.
  4. Spatial statistics - Test for spatial autocorrelation (Global Moran's I). Identify clusters and hotspots (Local Moran's I / LISA, Getis-Ord Gi*). For point patterns: kernel density estimation, Ripley's K function. For regression: spatial lag or spatial error models (GWR for non-stationarity).
  5. Remote sensing analysis - Atmospheric correction and preprocessing. Compute indices (NDVI, NDWI, NDBI). Supervised classification (random forest, SVM) or unsupervised (K-means, ISODATA). Accuracy assessment with confusion matrix and Kappa statistic.
  6. Visualization and cartography - Create maps with proper elements: title, scale bar, north arrow, legend, data source. Use appropriate color schemes (sequential for magnitude, diverging for deviation, qualitative for categories). Consider colorblind-safe palettes.
  7. Validation - Verify spatial operations with visual inspection and area/count checks. Cross-validate classification accuracy. Assess edge effects in spatial statistics. Report spatial resolution and positional accuracy.

Key Databases and Tools

Output Format

Quality Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.