bioepic-data/ecosim-agent / .agents/skills/ecosim-pftpar-extractor
ecosim-pftpar-extractor
VerifiedExtract one EcoSIM PFT parameter record from a PFT-parameter NetCDF file into a standalone NetCDF. Use when Codex needs to isolate all parameters for a given EcoSIM six-character PFT code such as ndlf34, or a four-character pfts_short value plus Koppen climate code, while preserving all non-PFT-specific variables such as pfts_short, pfts_long, and Koppen metadata.
EcoSIM PFT Parameter Extractor
Use this skill to create a single-PFT parameter NetCDF from an EcoSIM
ecosim_pftpar_*.nc file.
Workflow
-
Identify the source PFT parameter NetCDF from the user request. If omitted, search under
data/, then under the repo, then ask for the file. -
Identify the target PFT:
- Prefer an exact six-character
pftscode such asndlf34. - If only a four-character
pfts_shortcode such asndlfis supplied, require a two-digit--koppen-codeunless exactly one matchingpftsrecord exists.
- Prefer an exact six-character
-
Run the bundled extractor with the repo NetCDF-capable Python environment:
.venv-cmip6/bin/python .agents/skills/ecosim-pftpar-extractor/scripts/extract_pftpar_record.py \ --input /path/to/ecosim_pftpar_YYYYMMDD.nc \ --pft ndlf34 \ --output result/pftpar_extracts/ndlf34.nc -
Verify the output summary reports
npfts=1, the selectedpftscode, and preserved non-PFT metadata dimensions such asnpftandnkopenclms.
Extraction Contract
- Slice every variable with dimension
npftsto the selected record only. - Preserve all variables without
npftsunchanged, includingpfts_short,pfts_long,koppen_clim_no,koppen_clim_short, andkoppen_clim_long. - Preserve variable attributes, global attributes, fill values, and dimension
names. Keep the output
npftsdimension length at one record. - Write the default output basename as
<selected-pft>.nc; for example,ndlf34becomesndlf34.nc.
Notes
- Do not use regex or text parsing for NetCDF extraction when
netCDF4is available; preserve numeric dtypes and metadata directly. - If
.venv-cmip6/bin/pythonis unavailable, use any Python environment withnetCDF4installed. The base desktop Python may not include NetCDF support. - If the requested PFT is missing, list exact available codes with the same four-character prefix and do not create an output file.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |