Skip to content

Commit

Permalink
added name labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjones76 committed May 24, 2016
1 parent c8faa93 commit 22d3f66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/FileFormats/Win32.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
getcha(cf) = (f = open(cf, "r"); F = readlines(f); close(f); return F)

function get_netStr(orgID,netID)
nets = readdlm(string(Pkg.dir(),"/SeisIO/src/FileFormats/jpcodes.csv"), ';')
fname = string(Pkg.dir(),"/SeisIO/src/FileFormats/jpcodes.csv")
isfile(fname) || return "Unknown"
nets = readdlm(fname, ';')
i = find((nets[:,1].==orgID).*(nets[:,2].==netID))
if isempty(i)
return "Unknown"
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/plotseis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Renormalized, time-aligned trace plot of data in S.x using timestamps in S.t.
Use timing of channel C to determine x-ticks and format FMT to format x-labels.
"""
function plotseis(S::SeisData; fmt="auto"::ASCIIString, use_name==false::Bool)
function plotseis(S::SeisData; fmt="auto"::ASCIIString, use_name=false::Bool)
# Basic plotting
figure()
axes([0.15, 0.1, 0.8, 0.8])
Expand Down

0 comments on commit 22d3f66

Please sign in to comment.