Agent skill
google-earth-engine-31-parse-getinfo-results
Sub-skill of google-earth-engine: 3.1 Parse getInfo() Results (+2).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/engineering/gis/google-earth-engine/31-parse-getinfo-results
SKILL.md
3.1 Parse getInfo() Results (+2)
3.1 Parse getInfo() Results
# Always limit getInfo() to small results — expensive call
result = stats.getInfo()
depth_min = result["elevation_min"]
depth_max = result["elevation_max"]
depth_mean = result["elevation_mean"]
3.2 Read Exported GeoTIFF
import rasterio
import numpy as np
with rasterio.open("gebco_north_sea_500m.tif") as src:
depth = src.read(1).astype(float)
depth[depth == src.nodata] = np.nan
transform = src.transform
crs = src.crs
print(f"Grid: {depth.shape}, depth range: {np.nanmin(depth):.0f} to {np.nanmax(depth):.0f} m")
3.3 Time-Series to DataFrame
import pandas as pd
# Reduce collection to time series at a point
point = ee.Geometry.Point([-1.5, 57.0])
ts = era5_ws.map(lambda img: img.reduceRegion(
reducer=ee.Reducer.mean(),
geometry=point,
scale=10000
).set("date", img.date().format("YYYY-MM-dd")))
data = ts.aggregate_array("date").getInfo()
ws_vals = ts.aggregate_array("wind_speed").getInfo()
df = pd.DataFrame({"date": data, "wind_speed_ms": ws_vals})
df["date"] = pd.to_datetime(df["date"])
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?