parsing-hecras-geometry

Parse fixed-width HEC-RAS .g## geometry files and modify cross sections and Manning's n tables.

73|25|Updated Sep 5, 2024
One-click install
npx skills add https://github.com/gpt-cmdr/ras-commander --skill parsing-hecras-geometry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: parsing-hecras-geometry
Source: https://github.com/gpt-cmdr/ras-commander/tree/main/.claude/skills/parsing-hecras-geometry
Command: npx skills add https://github.com/gpt-cmdr/ras-commander --skill parsing-hecras-geometry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the complex task of reading and modifying HEC-RAS plain text geometry files.

Core Features & Use Cases

  • Geometry File Operations: Parse and modify cross sections, storage areas, bridges, and Manning's n tables, eliminating manual file editing errors.

Core Features & Use Cases

  • Cross Section Management: Read and modify station-elevation data with automatic bank station interpolation and backup creation.

Quick Start

List all cross sections in the geometry file "model.g01" and extract their geometry data.

Frequently Asked Questions about parsing-hecras-geometry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse and modify HEC-RAS geometry files programmatically?

Parsing HEC-RAS geometry files reads fixed-width FORTRAN-formatted .g## data to extract and edit cross sections, roughness tables, and structure data. This Skill automates that process, handling bank stations, 450-point limits, and backup generation through a modular API without manual file editing.

Can I update Manning's n values and cross-section data in HEC-RAS models?

Yes. This Skill modifies roughness (Manning's n) tables and cross-section station-elevation data directly, with automatic bank interpolation on write and backup creation to prevent data loss.

What structures can I extract from HEC-RAS geometry files?

You can extract and work with bridges, culverts, storage areas, lateral structures, and inline weirs. The Skill parses structure data from fixed-width geometry files and supports modifications through its modular accessor and writer APIs.

Does this work with the 450-point cross-section limit in HEC-RAS?

Yes. The Skill enforces HEC-RAS's 450-point cross-section limit and handles case-sensitive identifiers, bank-station logic, and automatic interpolation to comply with model constraints.

How do I list and extract all cross sections from a geometry file?

Load the geometry file (e.g., model.g01) using the Skill's parser to list cross sections and access their station-elevation data. The modular API returns structured geometry data for analysis or modification.

What file format does HEC-RAS use for geometry data?

HEC-RAS geometry files use fixed-width FORTRAN format (.g## files). This Skill reads and writes that format, respecting column positions and case sensitivity required by HEC-RAS models.