Skip to content

Commit

Permalink
gaugeXXX.txt file for v5.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrocoast committed Dec 15, 2024
1 parent 37e0009 commit 3936d36
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/loadgauge.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ function loadgauge(outputdir::AbstractString, gaugeid::AbstractVector{Int64}=0:0
f = open(filename,"r")
header1 = readline(f)
close(f)
id = parse(Int64,header1[13:17])
loc = [parse(Float64,header1[30:46]), parse(Float64,header1[48:64])]
header1sep = split(header1,r"\s+")
id = parse(Int64,header1sep[3])
loc = [parse(Float64,header1sep[5]), parse(Float64,header1sep[6])]
#id = parse(Int64,header1[13:17])
#loc = [parse(Float64,header1[30:46]), parse(Float64,header1[48:64])]

# label
label = labelhead*@sprintf("%d",id)

Expand Down

0 comments on commit 3936d36

Please sign in to comment.