Skip to content
Back to skills

Collection

ASecurity

Updates HEC-HMS meteorologic model files (.met) including precipitation methods, gage assignments, evapotranspiration, and Atlas 14 frequency storms. Use when configuring precipitation, assigning gages to subbasins, updating TP40 to Atlas 14, or modifying ET methods. Handles clone workflows for QAQC comparison. Trigger keywords: met model, precipitation, gage assignment, Atlas 14, TP40, frequency storm, evapotranspiration, ET, meteorologic model, update precip.

  • 24 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
documentationpythonapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add mattnigh/skills_collection --skill collection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collection?

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

Security grade badge for Collection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mattnigh-collection-2a6a8c7b/badge)](https://www.skillsdirectory.com/skills/mattnigh-collection-2a6a8c7b)

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
---
name: updating-met-models
description: |
  Updates HEC-HMS meteorologic model files (.met) including precipitation methods,
  gage assignments, evapotranspiration, and Atlas 14 frequency storms. Use when
  configuring precipitation, assigning gages to subbasins, updating TP40 to Atlas 14,
  or modifying ET methods. Handles clone workflows for QAQC comparison.
  Trigger keywords: met model, precipitation, gage assignment, Atlas 14, TP40,
  frequency storm, evapotranspiration, ET, meteorologic model, update precip.
---

# Updating Meteorologic Models

## Quick Start

```python
from hms_commander import HmsMet

# Read met configuration
precip_method = HmsMet.get_precipitation_method("project.met")
gage_assignments = HmsMet.get_gage_assignments("project.met")

# Update gage assignments
HmsMet.set_gage_assignment("project.met", "Subbasin1", "Gage1")

# Update Atlas 14 depths
new_depths = [2.5, 3.1, 3.8, 4.5, 5.2, 6.0]  # 6-hour storm depths
HmsMet.set_precipitation_depths("project.met", new_depths)
```

## Primary Sources

**Code**: `hms_commander/HmsMet.py` - Complete API

**Task Agent**: `hms_agents/hms_atlas14/` - Automated Atlas 14 updates

**Rules**: `.claude/rules/hec-hms/met-files.md` - Met file patterns

**Examples**: `examples/04_hms_workflow.ipynb` cells 8-12 - Met operations

## When to Use This Skill

- Configuring precipitation methods (Gage weights, Gridded, Frequency storm)
- Assigning gages to subbasins
- Updating TP40 to Atlas 14 precipitation depths
- Modifying evapotranspiration methods
- Cloning met models for scenario comparison

## Core Capabilities

### 1. Precipitation Configuration

Supported methods:
- Specified Hyetograph
- Gage Weights
- Gridded Precipitation
- Frequency Storm (TP40, Atlas 14)
- SCS Storm
- Standard Project Storm

### 2. Gage Assignment

Map gages to subbasins:
```python
assignments = HmsMet.get_gage_assignments("project.met")
# Returns DataFrame: Subbasin → Gage mapping
```

### 3. Atlas 14 Integration

Update frequency storm depths:
```python
# Get current depths
depths = HmsMet.get_precipitation_depths("project.met")

# Update with Atlas 14 (from NOAA API or manual)
atlas14_depths = [2.8, 3.5, 4.2, 4.9, 5.7, 6.5]
HmsMet.set_precipitation_depths("project.met", atlas14_depths)
```

**See**: `hms_agents/hms_atlas14/` for automated workflow

### 4. Clone Workflows

```python
from hms_commander import init_hms_project, hms, HmsMet

init_hms_project("project")
HmsMet.clone_met("Baseline_Met", "Atlas14_Met", hms_object=hms)
# Update Atlas14_Met with new precipitation depths
```

## Common Workflows

### Workflow 1: Atlas 14 Update

**Automated approach** (Recommended):
```python
# Use hms_atlas14 task agent
# See: hms_agents/hms_atlas14/README.md
```

**Manual approach**:
```python
# 1. Get project centroid
from hms_commander import HmsGeo
lat, lon = HmsGeo.get_project_centroid_latlon("project.geo")

# 2. Download Atlas 14 from NOAA API (requires manual step)

# 3. Update met file
HmsMet.set_precipitation_depths("project.met", atlas14_depths)
```

### Workflow 2: Gage Weight Configuration

```python
# Assign gages to all subbasins
subbasins = ["Sub1", "Sub2", "Sub3"]
gages = ["Gage1", "Gage1", "Gage2"]

for sub, gage in zip(subbasins, gages):
    HmsMet.set_gage_assignment("project.met", sub, gage)
```

## Reference Files

- `reference/precipitation_methods.md` - All precip method details
- `reference/atlas14.md` - Atlas 14 integration guide
- `examples/atlas14_update.md` - Complete Atlas 14 workflow

## Related Skills

- **executing-hms-runs** - Run after updating precipitation
- **cloning-hms-components** - Clone met for scenario comparison

Files in this skill

  • 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md15.1 KB
  • 17hz__nextjs-template__claude__skills__example-skill__SKILL.md316 B
  • 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md3.5 KB
  • 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md5.4 KB
  • 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md7.7 KB
  • 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md26.1 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md15.7 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md17.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md9.4 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md12.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md16.6 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md11.2 KB
  • 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md14.8 KB
  • 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md16.2 KB
  • 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md11.8 KB
  • 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md17.5 KB
  • 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md19.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md6.2 KB
  • 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md18.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md24.5 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.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.