Skip to content

Commit

Permalink
started tutorial for Alpine visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
mthielma committed Feb 28, 2024
1 parent 9f209c3 commit 2c846ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.DS_Store
Manifest.toml
/docs/build
gmt.history
4 changes: 2 additions & 2 deletions tutorial/Tutorial_GPS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using DataFrames, CSV
#
# The approach we take here is to first read in the Vz data points & reshape it to 2D matrixes
# Next, we read the Ve/Vn data and add them to the Vz grid
data_file = CSV.File("ALPS2017_DEF_VT.GRD",datarow=18,header=false,delim=' ')
data_file = CSV.File("/Users/mthiel/Downloads/ALPS2017_DEF_VT.GRD",datarow=18,header=false,delim=' ')

num_columns = 4;
data = ParseColumns_CSV_File(data_file, num_columns); # Read numerical data from the file
Expand All @@ -29,7 +29,7 @@ Ve = ones(size(Vz))*NaN;
Vn = ones(size(Vz))*NaN;

# Now read the Ve/Vn (horizontal) velocities:
data_file = CSV.File("ALPS2017_DEF_HZ.GRD",datarow=18,header=false,delim=' ')
data_file = CSV.File("/Users/mthiel/Downloads/ALPS2017_DEF_HZ.GRD",datarow=18,header=false,delim=' ')
data = ParseColumns_CSV_File(data_file, 10)
lon_Hz, lat_Hz, Ve_Hz, Vn_Hz = data[:,1], data[:,2], data[:,3], data[:,4];
Ve_Hz = Ve_Hz*1000; #in mm/year
Expand Down

0 comments on commit 2c846ac

Please sign in to comment.