Library for river-cross-section analysis and modification