# # # first construct the velocity grids # awk '{print $1-360., $2, $3}' < vel.gmt > llve.dat awk '{print $1-360., $2, $4}' < vel.gmt > llvn.dat surface llve.dat -T.5 -R-125./-114./31.5/40.0 -I.01 -V -r -Gve_tot.grd surface llvn.dat -T.5 -R-125./-114./31.5/40.0 -I.01 -V -r -Gvn_tot.grd # # then take the gradidient of the velocity grids # grdgradient ve_tot.grd -Gvxx.grd -A270 -fg -V grdgradient ve_tot.grd -Gvxy.grd -A180 -fg -V grdgradient vn_tot.grd -Gvyx.grd -A270 -fg -V grdgradient vn_tot.grd -Gvyy.grd -A180 -fg -V # grdmath vxx.grd 1000. DIV = exx.grd grdmath vyy.grd 1000. DIV = eyy.grd grdmath vxy.grd vyx.grd ADD 2000. DIV = exy.grd # grd2xyz exx.grd > exx.dat grd2xyz eyy.grd > eyy.dat grd2xyz exy.grd > exy.dat