AGENT SKILL

interactive-earth-engine-maps

Route geemap interactive Earth Engine maps, backend choice, layers, basemaps, widgets, and HTML or Streamlit map output.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
interactive-earth-engine-maps
license
MIT
metadata
{ "disco-role": "operating" }
description
Route geemap interactive Earth Engine maps, backend choice, layers, basemaps, widgets, and HTML or Streamlit map output.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Interactive Earth Engine Maps

Use this operating sub-skill when the user asks for geemap map construction or debugging: creating a map, choosing the ipyleaflet or folium backend, adding Earth Engine layers, adding basemaps or tile services, adding map widgets, comparing layers, and saving or embedding an interactive map.

Route here for

  • geemap.Map, geemap.geemap.Map, and geemap.core.Map when the desired map is the default ipyleaflet-backed geemap map.
  • geemap.foliumap.Map or USE_FOLIUM=1 when the desired map is the folium-backed HTML-oriented map.
  • Earth Engine layer methods: add_layer, addLayer, and add_ee_layer.
  • Map positioning methods: set_center, setCenter, center_object, and centerObject.
  • Basemap and external layer methods: add_basemap, add_tile_layer, add_wms_layer, split_map, add_raster, add_cog_layer, and add_stac_layer.
  • Presentation and widget controls: add_legend, add_colorbar, add_draw_control, add_layer_manager, and add_inspector.
  • Map output methods: to_html and to_streamlit.
  • Module surfaces that support interactive maps: geemap.ee_tile_layers, geemap.basemaps, geemap.map_widgets, and geemap.toolbar.

Route elsewhere

  • Data conversion, local/remote data movement, Earth Engine exports, shp_to_ee, ee_export_*, ee_to_numpy, COG/STAC URL helpers, and format troubleshooting: conversion-and-io.
  • Charts, static cartography, cartoee, legends/colormaps beyond map attachment, Plotly, pydeck, kepler, and maplibre style depth: visualization-and-charts.
  • Timelapse generation, GIF/MP4 processing, app packaging, and deployment workflows: timelapse-and-apps.
  • Earth Engine classifier conversion and ML/AI helper workflows: machine-learning-and-ai.

First actions for future agents

  1. For map recipes, backend choice, and Earth Engine layer patterns, read references/workflows.md.
  2. For signatures, aliases, backend differences, and method ownership, read references/api-reference.md.
  3. For failures, credentials, optional services, widget display, basemaps, palettes, legends, or colorbars, read references/troubleshooting.md.
  4. If the active Python environment is uncertain, run scripts/map_smoke.py with --backend ipyleaflet --skip-ee-init or --backend folium --skip-ee-init.
  5. For package-wide installation and Earth Engine account setup, use the root skill's installation/auth guidance if integration provides it.

Backend policy

  • Prefer ipyleaflet for notebooks, drawing, layer manager, inspector, split-map UI, bidirectional widget interaction, and the richest geemap toolset.
  • Prefer folium for simple map rendering, saved HTML, static Leaflet output, or lightweight Streamlit embedding.
  • Use explicit imports when backend behavior matters:
    • import geemap.geemap as geemap for ipyleaflet.
    • import geemap.foliumap as geemap for folium.
  • Treat top-level import geemap as environment-dependent: if USE_FOLIUM is set, it loads folium behavior; otherwise it attempts the ipyleaflet implementation.
  • Use ee_initialize=False for offline or pre-auth smoke checks. Remove that flag only after the user has an Earth Engine account, project, credentials, and network access.

Safety boundaries

  • This sub-skill can create offline map objects and inspect method availability without Earth Engine authentication.
  • Adding real Earth Engine imagery, sampling data, centering on remote EE objects, or using Inspector values requires Earth Engine initialization and network access.
  • add_raster usually requires optional local tile serving support; add_cog_layer and add_stac_layer usually require reachable titiler or catalog services.
  • Keep generated answers self-contained: do not ask future agents to open the original repository checkout. Use only this subtree and sibling generated skill references.

Workflow checklist

  • For a map-only offline check, import the chosen backend, create Map(..., ee_initialize=False), add a basemap or tile URL, and run the smoke script if imports are uncertain.
  • For an authenticated EE layer, initialize Earth Engine first, then call add_layer, addLayer, or add_ee_layer with a supported EE object and a validated vis_params dictionary.
  • For external web layers, use add_tile_layer for XYZ URLs and add_wms_layer for WMS services; match argument names to the active backend.
  • For COG/STAC/local raster layers, confirm optional raster dependencies, local file paths, remote URLs, and titiler or local tile serving requirements before blaming EE auth.
  • For interactive controls, stay on ipyleaflet and use add_draw_control, add_layer_manager, add_inspector, add_toolbar, or add_gui as appropriate.
  • For portable output, call to_html; use to_streamlit only when Streamlit is installed and route larger app deployment to the app sub-skill.

Troubleshooting start points

  • Auth, project, proxy, or EE service failures: use references/troubleshooting.md, section "Earth Engine auth, project, and network".
  • Import, kernel, Colab, Jupyter, or widget display failures: use the troubleshooting sections on kernel restart and widget display.
  • Backend mismatch or USE_FOLIUM surprises: use the backend policy above plus scripts/map_smoke.py and the troubleshooting backend section.
  • Basemap registry versus module-helper confusion: use the troubleshooting section "Basemap catalog and shadowing".
  • Palette, legend, and colorbar validation errors: use the troubleshooting section "Invalid palette, legend, or colorbar values".
  • Raster, COG, STAC, WMS, or XYZ layer failures: use the troubleshooting section "Optional localtileserver, titiler, and network layers".

Bundled-source policy

  • scripts/map_smoke.py is the only bundled executable helper for this sub-skill.
  • The credentialed Earth Engine map example from the repository is intentionally reference-only and distilled into references/workflows.md; do not ask future agents to run or open it.
  • references/api-reference.md owns the verified method and module surface; keep new API detail there rather than expanding this router.
  • references/troubleshooting.md owns the operational failure matrix; keep new failure notes there rather than scattering them through workflows.
  • Verification cases and reports belong outside this runtime subtree; this sub-skill only contains operating instructions and helpers.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351