It should be possible to patch the original version of Rayinvr
»Rayinvr with any of these patches. Most are quite simple, so it should be possible to apply them in any order.
Apply the patched as follows. Unpack the original Rayinvr package, and change to the new Rayinvr directory it creates:
tar -zxvf rayinvr.tar.gz
cd rayinvr
Download the patch(es) to your current working directory, and run the following (replacing patch.diff with the correct file):
patch -p0 < patch.diff
Then build as normal, in this case there is a script that will build everything and place it in the bin subdirectory under the main rayinvr directory:
./build_all.bash
These patches have been made for use at Dalhousie, but hopefully they will be useful for others.
- There is a slightly modified version of Rayinvr, which compiles with G77. This allows one to use Rayinvr in Linux, Mac OS X (with g77) or in Windows using Cygwin. »rayinvr_g77. Modifications made by Thomas Funck. UPDATE: The official »Rayinvr site has a new patch created by Scott Pearse, allowing for use with G77. It is probably more complete than the package offered here.
- A patch to Rayinvr has been created which increases the precision of depths and velocities in the velocity model (v.in). This allows for more detailed velocity analysis, which is useful for high resolution velocity modelling. »upload/rayinvr_hiprecision.diff. More info is included in the read.me.precision file which is included with the patch. If you prefer not to patch the source, this is a tar.gz archive containing Rayinvr with the g77 patch by Scott Pearse, and the high precision patch already applied »upload/rayinvr_hiprecision.tar.gz.
- This patch increases the precision of the depth nodes from 10 m to 1 m, and velocities from 10 m/s to 1 m/s.
- The input format of the v.in velocity model must be changed to use this extra precision (it simply includes an extra decimal place for depths and velocities). Beware that the new format is incompatible with the original version of Rayinvr.
- Modified c2v.f and v2c.f code is also included in the misc subdirectory. This allows one to convert to and from the v.in and c.in format.
- Not all utilities have been modified to use the newer format, only rayinvr/Xrayinvr, vmodel/xvmodel, dmplstsqr, and c2v/v2c.
- The documentation may still refer to the old style v.in format, which is incorrect. For example format: I2, 1X, 10F7.2 describing the format of the v.in is now format: I2, 1X, 10F8.3.