xiaohongshu
xiaohongshu
dss_read_boundary-data
Reads HEC-DSS files (V6 and V7) for boundary condition extraction using RasDss class. Handles JVM configuration, HEC Monolith download, catalog reading, and time series extraction. Use when working with DSS files, extracting boundary data, reading HEC-HMS output, or integrating DSS workflows. Tri...
Full skill instructions
Primary Source Navigator: This skill provides a concise entry point to DSS file operations. Complete documentation exists in authoritative sources.
from ras_commander import init_ras_project, RasDss
# Initialize project
ras = init_ras_project("path/to/project", "6.6")
# Read DSS catalog
catalog = RasDss.get_catalog("file.dss")
# Extract single time series
df = RasDss.read_timeseries("file.dss", pathname)
# Extract ALL boundary DSS data (recommended)
enhanced = RasDss.extract_boundary_timeseries(
ras.boundaries_df,
ras_object=ras
)
Location: C:\GH\ras-commander\ras_commander\dss\AGENTS.md
Read this for:
df.attrs)Why this is authoritative: Written by maintainers, updated with code changes, read by developers working on the module.
Location: C:\GH\ras-commander\examples\310_dss_boundary_extraction.ipynb
Read this for:
extract_boundary_timeseries()Why this is authoritative: Tested with real HEC-RAS projects, serves as functional test, maintained alongside library.
Location: C:\GH\ras-commander\ras_commander\dss\RasDss.py
Read this for:
Why this is authoritative: Source code is always correct, docstrings updated with each release.
Use when:
/A/B/C/D/E/F/
Example:
//BALD EAGLE 40/FLOW/01JAN1999/15MIN/RUN:PMF-EVENT/
See ras_commander/dss/AGENTS.md for complete details.
Three-level lazy loading:
Package Import: Lightweight, no Java loaded
from ras_commander import RasDss # Fast, no JVM
First Method Call: Configures JVM, downloads Monolith (~20 MB, one-time)
catalog = RasDss.get_catalog("file.dss") # Triggers setup
Subsequent Calls: Uses cached JVM and libraries
df = RasDss.read_timeseries(...) # Fast, reuses JVM
Required (must install manually):
pip install pyjnius
Required (system):
Auto-downloaded:
~/.ras-commander/dss/See ras_commander/dss/AGENTS.md for complete API reference table.
get_catalog(dss_file) - List all paths in DSS file
List[str] of DSS pathnamesread_timeseries(dss_file, pathname) - Extract single time series
DataFrame with DatetimeIndex and 'value' columndf.attrs (pathname, units, type, interval, dss_file)extract_boundary_timeseries(boundaries_df, ras_object) - Extract ALL DSS boundaries
get_info(dss_file) - Quick file summary
Dict with filename, size, total_paths, sample_pathsread_multiple_timeseries(dss_file, pathnames) - Batch extract
Dict[str, DataFrame] mapping pathname to data# List available data
catalog = RasDss.get_catalog("file.dss")
flow_paths = [p for p in catalog if '/FLOW/' in p]
# Extract specific path
df = RasDss.read_timeseries("file.dss", flow_paths[0])
print(f"Units: {df.attrs['units']}")
print(f"Points: {len(df)}")
from ras_commander import init_ras_project, RasDss
# Initialize project
ras = init_ras_project("project_path", "6.6")
# Extract all DSS boundary data
enhanced = RasDss.extract_boundary_timeseries(
ras.boundaries_df,
ras_object=ras
)
# Access extracted data
for idx, row in enhanced.iterrows():
if row['Use DSS'] and row['dss_timeseries'] is not None:
df = row['dss_timeseries']
print(f"{row['bc_type']}: {len(df)} points")
import matplotlib.pyplot as plt
# Get DSS boundary
dss_boundaries = enhanced[enhanced['Use DSS'] == True]
first_dss = dss_boundaries.iloc[0]
# Plot
df = first_dss['dss_timeseries']
df['value'].plot(figsize=(12, 4))
plt.title(f"{first_dss['bc_type']} - {first_dss['river_reach_name']}")
plt.ylabel(f"Flow ({df.attrs['units']})")
plt.grid(True)
plt.show()
See ras_commander/dss/AGENTS.md for complete troubleshooting guide.
1. pyjnius Not Installed
ImportError: pyjnius is required for DSS file operations.
Fix: pip install pyjnius
2. Java Not Found
RuntimeError: JAVA_HOME not set and Java not found automatically.
Fix: Install Java JRE/JDK 8+ and set JAVA_HOME
3. JVM Already Started
RuntimeError: JVM configuration already done.
Fix: Restart Python process or notebook kernel
4. DSS File Not Found
FileNotFoundError: DSS file not found: ...
Fix: Use absolute paths or resolve relative to project directory
from pathlib import Path
try:
dss_file = Path("file.dss").resolve()
if not dss_file.exists():
raise FileNotFoundError(f"DSS file not found: {dss_file}")
catalog = RasDss.get_catalog(dss_file)
print(f"Success: {len(catalog)} paths")
except ImportError as e:
print(f"Missing dependency: {e}")
print("Install: pip install pyjnius")
except RuntimeError as e:
print(f"Java/JVM error: {e}")
print("Check JAVA_HOME and Java installation")
DO NOT read the reference/ or examples/ folders in this skill directory - they contain outdated duplicated content.
Always prefer primary sources:
ras_commander/dss/AGENTS.mdexamples/310_dss_boundary_extraction.ipynbras_commander/dss/RasDss.py docstringsextract_boundary_timeseries() handles all DSS datadf.attrsdss/ subpackage with lazy loadingxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience