Skip to content
Back to skills

Docs

ASecurity

Define the experiment parameters, model paths, and simulation period for an EPIC crop simulation. This stage produces a `config.yml` file and establishes the workspace directory structure.

  • 200 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
testingpythonbash

Works with

  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 21 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add lzwei196/KISS---Knowledge-Infrastructure-for-Scientific-Simulation --skill docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lzwei196-docs-6b48ec95/badge)](https://www.skillsdirectory.com/skills/lzwei196-docs-6b48ec95)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Stage 0: Configuration

## Purpose

Define the experiment parameters, model paths, and simulation period for an EPIC
crop simulation. This stage produces a `config.yml` file and establishes the
workspace directory structure.

## Prerequisites

- Python 3.11 with `geo_epic_win` installed (`pip install geo_epic_win`)
- EPIC 1102 binary available (bundled in `geoEpic/assets/workspace_win/model/`)
- Target region defined (coordinates, state/county FIPS codes)

## Inputs

| Input | Format | Example |
|-------|--------|---------|
| Experiment name | string | "Iowa Corn 2015-2020" |
| EPIC binary path | file path | `./model/EPIC1102.exe` |
| Start date | YYYY-MM-DD | `2015-01-01` |
| Duration | integer years | `6` |
| Output types | list | `[ACY, DGN]` |
| Region of interest | text/shapefile | "Iowa" |

## Outputs

| Output | Format | Location |
|--------|--------|----------|
| config.yml | YAML | workspace root |
| Directory tree | directories | model/, weather/, soil/, sites/, opc/, output/, log/ |

## Procedure

1. **Initialize workspace** using the Geo-EPIC toolkit:
   ```python
   from geoEpic.core import Workspace
   # or use CLI: geo_epic init
   ```
   This copies the asset template to a new workspace directory.

2. **Edit config.yml** with experiment parameters:
   ```yaml
   EXPName: Iowa Corn 2015-2020
   EPICModel: ./model/EPIC1102.exe
   start_date: '2015-01-01'
   duration: 6
   output_types: [ACY, DGN]
   ```

3. **Verify model binary** exists and is executable:
   ```bash
   ls -la model/EPIC1102.exe
   chmod +x model/EPIC1102.exe  # Linux only
   ```

4. **Create info.csv** skeleton with site list columns:
   ```csv
   SiteID,soil,dly,opc,lat,lon
   ```

## Verification

- `config.yml` exists and is valid YAML
- `model/EPIC1102.exe` exists
- All required DAT files present in `model/`
- Directory tree created

## Traps

| Trap | Symptom | Fix |
|------|---------|-----|
| Python version mismatch | Import errors, numpy issues | Must use Python 3.11 exactly |
| Missing DAT files | EPIC crashes silently | Copy full model/ from assets |
| Wrong start_date format | EPICCONT.DAT parse error | Use YYYY-MM-DD with quotes |
| Duration = 0 | No simulation runs | Must be >= 1 |
| SiteID > 9 chars | Truncation in EPICRUN.DAT | Keep SiteID to 9 alphanumeric chars |

## Example

```bash
# Initialize workspace from template
geo_epic init --name iowa_corn --dest ./iowa_corn_workspace

# Edit configuration
cd iowa_corn_workspace
vim config.yml  # Set dates, region, output types

# Verify
python -c "from ruamel.yaml import YAML; print(YAML().load(open('config.yml')))"
```

Files in this skill

  • 01_site_preparation.md1.2 KB
  • 02_forcing_conversion.md1.8 KB
  • 03_soil_profile.md1.5 KB
  • 04_operations_schedule.md1.7 KB
  • 05_run_execution.md1.5 KB
  • 06_output_parsing.md1.2 KB
  • 07_capability_inventory.md4.5 KB
  • format_spec.yaml35.5 KB
  • papers.json6 KB
  • s0_configuration_skill.md2.5 KB
  • s0_workspace_setup.md1.8 KB
  • s1_weather_preparation.md2.3 KB
  • s1_weather_preparation_skill.md4.3 KB
  • s2_soil_preparation.md2.1 KB
  • s2_soil_preparation_skill.md4.3 KB
  • s3_execution.md2.3 KB
  • s3_operations_management_skill.md4.7 KB
  • s4_execution_skill.md3.8 KB
  • s4_output_parsing.md2.2 KB
  • s5_calibration_validation.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…