Skip to content

Demo Mode

If you don’t have sonar files handy but want to explore the web UI, globe visualization, or test the CLI, the demo command generates realistic synthetic data.

Terminal window
# Initialize first
sonar-catalog init
# Generate 100 synthetic files
sonar-catalog demo --num-files 100
# Use a specific random seed for reproducible results
sonar-catalog demo --num-files 50 --seed 12345

The demo generates:

  • Synthetic files with realistic sizes (100MB - 2GB), names, and sonar formats
  • Multiple NFS servers (4 simulated: sonar-nas-01 through sonar-nas-04)
  • Duplicate locations — some files appear on multiple servers to demonstrate deduplication
  • Navigation tracks — zigzag survey patterns across 8 global regions
  • Host records — simulated discovered hosts with SSH status
RegionCenterArea
Gulf of Mexico28.0N, 90.0WCoastal survey
North Sea56.0N, 3.0EOffshore energy
Norwegian Coast62.0N, 6.0EFjord mapping
US East Coast37.5N, 76.0WContinental shelf
Mediterranean36.0N, 15.0ESeabed survey
Great Barrier Reef-18.0S, 147.0EReef mapping
Persian Gulf26.0N, 52.0ESubsea pipeline
South China Sea15.0N, 115.0EHydrographic

Generated files use real sonar format extensions and types: XTF, JSF, S7K, KMALL, ALL, BAG, RAW, and DB.

Terminal window
# Statistics
sonar-catalog stats
# Search
sonar-catalog search "line"
# Duplicates
sonar-catalog dupes
# Start the web UI
sonar-catalog web --port 8080
# Visit http://localhost:8080 for search
# Visit http://localhost:8080/globe for the 3D globe

With the same --seed, demo always generates the same data. This is useful for testing or reproducible demos:

Terminal window
sonar-catalog demo --num-files 100 --seed 42
# Always produces the exact same files, locations, and tracks