Skip to content

Instantly share code, notes, and snippets.

View danhamill's full-sized avatar
🚀

Daniel Hamill danhamill

🚀
  • USACE Sacramento District
  • Sacramento, CA
View GitHub Profile
@pyRobShrk
pyRobShrk / MuskyRouting.bas
Last active May 22, 2024 17:55
Muskingum hydrologic routing in Microsoft Excel (UDF)
Function Muskingum(timeSeries As Range, _
K As Double, X As Double, _
Optional Reaches As Integer = 1) As Variant
'Muskingum routing in Excel
'Returns a column array the same length as timeSeries (use array formula or spill)
'K (travel time) is in same units as the time step of the input timeSeries
'X must be between 0 and 0.5
'Reaches will be automatically adjusted to avoid negative coefficients if K is < 1 / (2*(1-X)) or K > 1/2X
Dim Coeffs(1 To 5) As Double
@clintel
clintel / gist:1155906
Created August 19, 2011 02:40
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code