Analyzes climate and energy data with Python ecosystem: pandas, xarray, rasterio, and emissions computation workflows.
Agentic Workflow: Read -> Reason -> Act (climate-tech)
You are climate-tech (environment) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — environment context for climate-tech
- Domain: Analyzes climate and energy data with Python ecosystem: pandas, xarray, rasterio, and emissions computation workflows.
- climate-data: Process climate and weather datasets. —
pip install pandas xarray netcdf4
- emissions-accounting: Compute and report emissions metrics. —
python -c "import pandas as pd; df=pd.read_csv(\"emissions.csv\"); df[\"co2e\"]=
- Check
knowledge and prerequisites: node.js, python, prometheus, grafana
2. Reason — think for climate-tech
- For
climate-data: Process climate and weather datasets. — decide which checks to run
- For
emissions-accounting: Compute and report emissions metrics. — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with climate-tech tools
- Tools:
Glob, Grep, Read, Bash (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
climate-tech:0d112689
Climate Tech
Analyze climate, weather, and energy data.
When to Use
- Processing NetCDF/CMIP model output
- Emissions accounting and scenario analysis
- Geospatial raster analysis (land cover, solar irradiance)
- Building energy and grid data pipelines
Commands
pip install pandas xarray netcdf4 rasterio
# Inspect a NetCDF dataset
python -c "import xarray as xr; ds=xr.open_dataset('data.nc'); print(ds)"
# Time-averaged means
python -c "import xarray as xr; print(xr.open_dataset('data.nc').mean(dim='time'))"
# Emissions aggregation
python -c "import pandas as pd; df=pd.read_csv('emissions.csv'); print(df.groupby('year').co2.sum())"
# GWP-weighted CO2e
python -c "import pandas as pd; df=pd.read_csv('emissions.csv'); df['co2e']=df.co2*df.gwp; print(df.groupby('sector').co2e.sum())"
# Raster inspection
python -c "import rasterio; print(rasterio.open('raster.tif'))"
Analysis Example
import xarray as xr
ds = xr.open_dataset("temp_2m.nc")
annual_mean = ds.t2m.groupby("time.year").mean()
print(annual_mean.isel(year=-1))
Best Practices
- Check units and coordinate systems before arithmetic
- Use xarray for labeled N-D data, pandas for tabular
- Prefer chunked reads for large CMIP files
- Record data provenance (source, version, processing steps)
- Validate against published figures before reporting
- Pin scientific package versions for reproducibility
Capabilities
climate-data
Process climate and weather datasets.
Parameters:
file (string): NetCDF, CSV, or GeoTIFF path
engine (string): Backend: xarray, pandas, or rasterio
Commands:
pip install pandas xarray netcdf4
python -c "import xarray as xr; ds=xr.open_dataset(\"data.nc\"); print(ds)"
python -c "import pandas as pd; print(pd.read_csv(\"emissions.csv\").head())"
pip install rasterio
python -c "import rasterio; print(rasterio.open(\"tif/raster.tif\"))"
Examples:
- python -c "import xarray as xr; print(xr.open_dataset("data.nc").mean(dim="time"))"
- python -c "import pandas as pd; df=pd.read_csv("emissions.csv"); print(df.groupby("year").co2.sum())"
emissions-accounting
Compute and report emissions metrics.
Parameters:
dataset (string): Emissions dataset path
unit (string): Units: tCO2e, kgCO2e, or MtCO2e
Commands:
python -c "import pandas as pd; df=pd.read_csv(\"emissions.csv\"); df[\"co2e\"]=df.co2*df.gwp; print(df.groupby(\"sector\").co2e.sum())"
python -m venv .venv && source .venv/bin/activate
pip install openpyxl
python -c "import pandas as pd; pd.DataFrame({\"x\":[1]}).to_excel(\"report.xlsx\"); print(\"ok\")"
Examples:
- python -c "import pandas as pd; df=pd.read_csv("emissions.csv"); print(df.pivot_table(index="year", columns="sector", values="co2e", aggfunc="sum"))"
- python -c "import pandas as pd; print(pd.read_excel("report.xlsx"))"
References
1---2name: "climate-tech"3description: "Analyzes climate and energy data with Python ecosystem: pandas, xarray, rasterio, and emissions computation workflows. Use when working with climate data, emissions accounting or when the user mentions climate data, emissions accounting."4license: "MIT"5compatibility: "Requires node.js, python, prometheus, grafana, aws."6metadata:7 source: https://skillmd.com/skills/opknock/climate-tech8 author: Kdesk9 version: 2.0.010 category: environment11allowed-tools: "Glob Grep Read Bash(pip:*) Bash(python:*)"12---1314Analyzes climate and energy data with Python ecosystem: pandas, xarray, rasterio, and emissions computation workflows.1516## Agentic Workflow: Read -> Reason -> Act (climate-tech)1718You are **climate-tech** (environment) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — environment context for `climate-tech`21- Domain: Analyzes climate and energy data with Python ecosystem: pandas, xarray, rasterio, and emissions computation workflows.22- **climate-data**: Process climate and weather datasets. — `pip install pandas xarray netcdf4`23- **emissions-accounting**: Compute and report emissions metrics. — `python -c "import pandas as pd; df=pd.read_csv(\"emissions.csv\"); df[\"co2e\"]=`24- Check `knowledge` and `prerequisites: node.js, python, prometheus, grafana`2526### 2. Reason — think for `climate-tech`27- For `climate-data`: Process climate and weather datasets. — decide which checks to run28- For `emissions-accounting`: Compute and report emissions metrics. — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `climate-tech` tools32- Tools: `Glob`, `Grep`, `Read`, `Bash` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `climate-tech:0d112689`3536# Climate Tech3738Analyze climate, weather, and energy data.3940## When to Use4142- Processing NetCDF/CMIP model output43- Emissions accounting and scenario analysis44- Geospatial raster analysis (land cover, solar irradiance)45- Building energy and grid data pipelines4647## Commands4849```bash50pip install pandas xarray netcdf4 rasterio5152# Inspect a NetCDF dataset53python -c "import xarray as xr; ds=xr.open_dataset('data.nc'); print(ds)"5455# Time-averaged means56python -c "import xarray as xr; print(xr.open_dataset('data.nc').mean(dim='time'))"5758# Emissions aggregation59python -c "import pandas as pd; df=pd.read_csv('emissions.csv'); print(df.groupby('year').co2.sum())"6061# GWP-weighted CO2e62python -c "import pandas as pd; df=pd.read_csv('emissions.csv'); df['co2e']=df.co2*df.gwp; print(df.groupby('sector').co2e.sum())"6364# Raster inspection65python -c "import rasterio; print(rasterio.open('raster.tif'))"66```6768## Analysis Example6970```python71import xarray as xr7273ds = xr.open_dataset("temp_2m.nc")74annual_mean = ds.t2m.groupby("time.year").mean()75print(annual_mean.isel(year=-1))76```7778## Best Practices7980- Check units and coordinate systems before arithmetic81- Use xarray for labeled N-D data, pandas for tabular82- Prefer chunked reads for large CMIP files83- Record data provenance (source, version, processing steps)84- Validate against published figures before reporting85- Pin scientific package versions for reproducibility8687## Capabilities8889### climate-data90Process climate and weather datasets.9192**Parameters:**93- `file` (string): NetCDF, CSV, or GeoTIFF path94- `engine` (string): Backend: xarray, pandas, or rasterio9596**Commands:**97- `pip install pandas xarray netcdf4`98- `python -c "import xarray as xr; ds=xr.open_dataset(\"data.nc\"); print(ds)"`99- `python -c "import pandas as pd; print(pd.read_csv(\"emissions.csv\").head())"`100- `pip install rasterio`101- `python -c "import rasterio; print(rasterio.open(\"tif/raster.tif\"))"`102103**Examples:**104- python -c "import xarray as xr; print(xr.open_dataset(\"data.nc\").mean(dim=\"time\"))"105- python -c "import pandas as pd; df=pd.read_csv(\"emissions.csv\"); print(df.groupby(\"year\").co2.sum())"106107### emissions-accounting108Compute and report emissions metrics.109110**Parameters:**111- `dataset` (string): Emissions dataset path112- `unit` (string): Units: tCO2e, kgCO2e, or MtCO2e113114**Commands:**115- `python -c "import pandas as pd; df=pd.read_csv(\"emissions.csv\"); df[\"co2e\"]=df.co2*df.gwp; print(df.groupby(\"sector\").co2e.sum())"`116- `python -m venv .venv && source .venv/bin/activate`117- `pip install openpyxl`118- `python -c "import pandas as pd; pd.DataFrame({\"x\":[1]}).to_excel(\"report.xlsx\"); print(\"ok\")"`119120**Examples:**121- python -c "import pandas as pd; df=pd.read_csv(\"emissions.csv\"); print(df.pivot_table(index=\"year\", columns=\"sector\", values=\"co2e\", aggfunc=\"sum\"))"122- python -c "import pandas as pd; print(pd.read_excel(\"report.xlsx\"))"123124## References125- [xarray Docs](https://docs.xarray.dev)126- [Rasterio Docs](https://rasterio.readthedocs.io)127- [IPCC GWP Values](https://www.ipcc.ch/report/ar6/wg1/)