Public
Edited
Apr 11
Importers
19 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof resetAccumulChartsLevel = Button("Reset charts")
Insert cell
Insert cell
Insert cell
viewof resetAccumulChartsVelocity = Button("Reset charts")
Insert cell
Insert cell
Insert cell
viewof resetAccumulChartsLocs = Button("Reset charts")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof resetAccumulChartsAll = Button("Reset charts")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof sliderLevel = Range([yStreamMaxInRev, yStreamEdgeInRev - 0.1], {
// - 0.1 to make sure we don't get sections in streambed peaks that are above yStream.rev
value: d3.mean([yStreamMaxInRev, yStreamEdgeInRev - 0.1]),
step: 0.1,
label: "Set the water level (m)",
format: x => m(x).toFixed(2)
})
Insert cell
viewof sliderVelocity = Range([0.1, 7], {
step: 0.01,
value: 3,
label: "Set the velocity intercept"
})
Insert cell
viewof rangeVelocity = Range([0, 1], {
step: 0.01,
value: 0.5,
label: "Set the position [0, 1] of the velocity centroid"
})
Insert cell
Insert cell
viewof slopeVelocity = Range([-2.72, 2.72], {
step: 0.01,
value: 0,
label: "Set the slope for velocity (away from centroid)"
})
Insert cell
viewof powerVelocity = Select(
[0,0.5,1,2],
{
value: 1,
label: "Select the velocity exponent level"
})
Insert cell
viewof sliderNumVelocityLocs = Range([1, 35], {
step: 1,
value: 10,
label: "Set the number of velocity locations"
})
Insert cell
viewof sliderLevelAll = Range([yStreamMaxHoldAllRev, yStreamEdgeHoldAllRev - 0.1], {
// - 0.1 to make sure we don't get sections in streambed peaks that are above yStream.rev
value: d3.mean([yStreamMaxHoldAllRev, yStreamEdgeHoldAllRev - 0.1]),
step: 0.1,
label: "Set the water level (m)",
format: x => m(x).toFixed(2)
})
Insert cell
viewof sliderNumVelocityLocsAll = Range([1, sliderNumVelocityLocsMaxAll], {
step: 1,
value: 10,
label: "Set the number of velocity locations"
})
Insert cell
Insert cell
Insert cell
viewof sliderVelocityAll = Range([0.1, 7], {
step: 0.01,
value: 3,
label: "Set the velocity intercept"
})
Insert cell
viewof rangeVelocityAll = Range([0, 1], {
step: 0.01,
value: 0.5,
label: "Set the position [0, 1] of the velocity centroid"
})
Insert cell
Insert cell
viewof powerVelocityAll = Select(
[0,0.5,1,2],
{
value: 1,
label: "Select the velocity exponent level"
})
Insert cell
viewof slopeVelocityAll = Range([-2.72, 2.72], {
step: 0.01,
value: 0,
label: "Set the slope for velocity (away from centroid)"
})
Insert cell
viewof mouseAreaRectsTF = Select(new Map([["Yes", true], ["No", false]]), {value: false, label: "Show mouse area rectangles?"})
Insert cell
viewof velocityAreaRectsTF = Select(new Map([["Yes", true], ["No", false]]), {value: 0, label: "Show velocity area rectangles?"})
Insert cell
viewof velocityTF = Select(new Map([["Yes", true], ["No", false]]), {value: 0, label: "Show velocity circles?"})
Insert cell
viewof drawLegendTF = Select(new Map([["Yes", true], ["No", false]]), {value: 0, label: "Draw legend?"})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Run the code below to export mouseDataHold after drawing your mouse line.
// Then upload file into observable as new default stream bed.

//exportToCsv('export.csv', mouseDataHold)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more