Skip to content

Commit

Permalink
Up README
Browse files Browse the repository at this point in the history
  • Loading branch information
jamm1985 committed Mar 22, 2018
1 parent a9888f8 commit ce58d6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ Use `Base.writedlm` to write XYZ (`lon`,`lat`,`pga/pgv/pgd/psa`) data to text fi
writedlm("Downloads/xyz.txt", B) # where B is N×3 Array{Float64}
```

Use `convert_to_point_vs30` to convert Array{Float64,2} array to Array{GroundMotion.Point_vs30,1}

## Earthquake location data

Lets define `lat`,`lon`,`depth`,`Ml`,`Mw`:
Expand Down
6 changes: 0 additions & 6 deletions src/auxiliary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ function read_vs30_file(filename::String)
return B
end
## convert Array{Float64,2} array to Array{GroundMotion.Point_vs30,1}
"""
convert_to_float_array(B::Array{T,N})
where T is Point_{pga,pgv,pgd}_out, Point_vs30
Convert 1-d array of custom type to Array{Float64}(N,X)
"""
function convert_to_point_vs30(A::Array{Float64,2})
vs30_row_num = length(A[:,1])
B = Array{Point_vs30}(0)
Expand Down

0 comments on commit ce58d6b

Please sign in to comment.