process-raster

Solid

Process raster data: clip by bounding box, stack multiple bands, mosaic GeoTIFFs, or convert between raster and vector formats.

Data & Documents 24 stars 3 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
47
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

You are helping the user process geospatial raster data using geoai. Input: `$@` Follow these steps in order. ## Step 1 -- Determine the operation Parse `$@` to identify the requested operation: | Operation | Triggers | Required inputs | |---|---|---| | `clip` | "clip", "crop", "subset", `--bbox` present | input raster + bbox | | `stack` | "stack", "combine bands" | list of input rasters | | `mosaic` | "mosaic", "merge" | input directory or list of rasters | | `raster-to-vector` | "to vector", "vectorize", "polygonize" | input raster | | `vector-to-raster` | "to raster", "rasterize", "burn" | input vector + pixel size | If the operation is unclear from the input, ask the user to specify. ## Step 2 -- Resolve input file(s) For single-file operations (`clip`, `raster-to-vector`, `vector-to-raster`): ```bash find "$PWD" -name "INPUT_FILENAME" -not -path '*/.git/*' 2>/dev/null ``` For multi-file operations (`stack`, `mosaic`), if a directory is given: ```bash find "INPUT_DIR" -name "*.tif" -o -name "*.tiff" 2>/dev/null | sort ``` If the user recently inspected or downloaded a file and did not specify an input, check the state file for context: ```bash STATE_DIR="" test -f .geoai-skills/state.json && STATE_DIR=".geoai-skills" PROJECT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")" PROJECT_ID="$(echo "$PROJECT_ROOT" | tr '/' '-')" test -f "$HOME/.geoai-skills/$PROJECT_ID/state.json" && STATE_DIR="$HOME/.geoai-skills/$PROJECT_ID" ``` If state exists,...

Details

Author
opengeos
Repository
opengeos/geoai-skills
Created
4 months ago
Last Updated
6 days ago
Language
N/A
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category