Plot shaded gOcad t-surfs using GMT for easy manipulation in graphics packages.
gOcad is used by our research group for structural modeling of triangulated surfaces. Often, we make images of these surfaces by either the "old screenshot" method or a direct export of the camera view to a raster image (TIFF or JPEG). I often am not happy with the results, as the screenshot is lossy and unscalable. And to be honest, since I mostly work on my Macintosh, I hate to have to go back to the lab, open up the project again, get the right view, with all the right elements to shoot another screenshot if I find errors in the image of the surface or can't scale it../fault_plot.awk yourtsurf.ts | awk '{if ($1==">") print $3}' | minmax
psxyz 3d_plot_examp.xyz -JX10/4.1698495 -JZ8.6273 -R367906/390161/3772140/3781420/-19000/200 -E330/15 -M'>' -L -P -W1 -Cplot.cpt -B10000/10000/5000 > plot.ps
Surface plot from GMT script with shading on the triangular elements from a northerly light source. Note that some of the triangular elements seem to have 0 area, which may lead to problems in the calculation step. |
Same surface in gOcad. Note this was only shot to illustrate the suface extent, not the resolution which is variable and can be changed. |
How to restore seismic data using a structural model following inclined shear restoration techniques in Adobe Illustrator is HERE.
How to convert an ERDAS Imagine image to a geospatially referenced NETCDF .grd file for use in GMT (Generic Mapping Tools)
We commonly use images (LANDSAT, geologic maps, etc) in our research and often have to change the geographic projection of the image or actually take a TIFF or JPEG and geospatially reference it. I use the Generic Mapping Tools to make many of my figures and wanted a way to incorporate geospatially referenced images with other datasets (earthquakes, shotpoint maps, etc).Here is how you do it:
gmt2rgb blah.rs -Gcolor%c.grd -R0/3144/0/2580 -F -I1/1
grdimage colorr.grd colorg.grd colorb.grd -R0/3144/0/2580 -B100 -JX10 > plot.ps
grdedit -R-121.664/-118.52/35.061/37.64/35.06 colorr.grd
| gOcad script
(in awk) to generate a group of surfaces from user-defined locations with
a user defined strike and dip How to use: This program, make_plane.awk, is written in awk so that it can be read on multiple platforms. I have no plans to port it to other platforms. The program reads a tabulated ascii file that has the following information about a point: X, Y, Z, strike, dip where X,Y,Z are in user defined units and strike and dip are in degrees following the Right Hand Rule (RHRule). It then makes a surface (in a gOcad group) centered at that point with the given strike and dip value, with the dip of the surface being a surface property. The original program was generated for gOcad v. 1.5 but should work for later versions as well. get make_plane.awk (control - click) get test data (control - click) get the group of surfaces made by the test data (control - click) |
Subset of fracture data measured from Coalinga anticline (2002 CAG) |
| Contact me: guzofski@fas.harvard.edu with
any questions or problems (which I am sure there will be!). However, use
at your own risk, I claim no responsibility for problems or errors caused
by the software or materials they generate. And ALWAYS SAVE YOUR PROJECT!!!!! |
|
|
Useage:
make_plane.awk datapoints.txt > datapoints.gp where the file datapoints.txt is the XYZ data file and the file datapoints.gp is the gOcad Group fileFrom here you just have to load the Group file into your gOcad project and then go to the pulldown window in gOcad for : Compute -> Apply Script -> On Object and do the following: {X = X + 730000}to return the X and Y locations back to their original position. 12/20/2002
|
|
|
Program (in gawk) and spreadsheet (in Excel) to calculate the strike and dip of a surface defined by three points (following Bilotti et al., AAPG Bulletin, V. 84, No. 6 (June 2000), p. 727 - 740.) How to use: This program, mapping.gawk, is written in gawk so that it can be read on multiple platforms. The spreadsheet sandd.xls is an Excel spreadsheet tested on a Macintosh and Windows. I have no plans to port these programs to other platforms. The gawk program reads a tabulated ascii file that has the following information: X, Y, Z for three points of a surface (say a geologic contact on a map) and computes the strike and dip of the surface defined by those three points. The Excel spreadsheet (screenshot below) has two sheets and allows the user to input 3 points on a surface and calculates the strike and dip of that surface. get mapping.gawk (control - click) get the Excel spreadsheet (control - click) |
|
|
|
| Contact me: guzofski@fas.harvard.edu with
any questions or problems. However, use at your own risk- I claim no responsibility
for problems or errors caused by the software or the data they generate. 12/20/2002
|
|