460 Posts in 227 Topics by 67 members

Velocities

Forum » Velocities » Import .grd or .xyz velocity file to nmo file

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Moderators: Andy Juniper , Guy Maslen , Keleigh Jones

Page: 1 Go to End
Author Topic: Import .grd or .xyz velocity file to nmo file 2505 Views

Import .grd or .xyz velocity file to nmo file Link to this post

Hi
I am trying to import a velocity file from a wide-angle inversion into Claritas .nmo format. It is written as a GMT .grd grid. Is there an easy way of doing this?
Thanks.
Michele

UPDATE:
I have found a convoluted way of doing this. I use "grd2xyz" followed by "sort" and "awk" to convert my .grd file to a single column ascii file, then I use Claritas' ascsegy to convert it to a segy file, see below for example script.

# /bin/bash
grd2xyz $1 \
| sort -n -k1,1 -k2,2 | awk '{print $3}' > temp.dat
ascsegy -ntraces 4001 -nsamps 1251 -dx 62.5 -sr 0.016 temp.dat $2
rm temp.dat

Here $1 is the input .grd file and $2 is the output segy file. Unfortunately this fails somewhere when I do it with a large 40000-cdp file. To make it work I have to subsample the velocity grid before the conversion. I then read the segy file with Claritas to fix some headers and in particular to define CDP number and then read the segy file with ISOVELS and save it to an Claritas .nmo file.

Michele

Re: Import .grd or .xyz velocity file to nmo file Link to this post

Michele,

Sorry for the delay in answering your question, but it looks as though you have developed your own flow for reformatting and reading the GMT data.

You could look at the READGRID module to see if you can simplify your flow, as you should be able to read the GMT data and then go straight to SEGY and then into ISOVELS removing one of your steps that you currently have to undertake.

Regards

Andy Juniper

    2505 Views
Go to Top