bgrid

Section: User Commands (1)
Updated: Mon Nov 15 2004
Index Return to Alphabetic Man Page Listings
 

NAME

bgrid - read EV grid and put into USP trace format  

SYNOPSIS

bgrid [ -Nntap ] [ -Ootap ] [ -nsnsamp ] [ -ntntrc ] [ -sinsi ] [ -nhdr ] [ -V ] [ -h ]  

DESCRIPTION

bgrid reads numbers from ASCII file created by EarthVision (EV), attaches the values to a line header and trace header, and writes this to a USP format disk file (or stdout). Output will consist of as many records of as many traces as specified in the EV file and each trace with a number of samples equal to what was read from the input. Note that one of the lines in the header to the EV file contains a specification of the the grid size in the form m x n x p, to specify the number of traces (m), lines (n), and samples per trace (p) in the file. This program does not attempt to read the EV header but requres the user to supply the information from the header, including the number of lines.

bgrid gets both its data and its parameters from command line arguments. These arguments specify the input, output, the sample interval, and verbose printout, if desired.  

Command line arguments

-N ntap
Enter the input EV file immediately after typing -N. This input may be a pipe, in which case the -N may be omitted. This input file should include the complete path name if the file resides in a directory other than the current working directory. Example -N/b/vsp/dummy tells the program to look for file 'dummy' in directory '/b/vsp'.

-O otap
Enter the output data set name or file immediately after typing -O. This output file is not required when piping the output to another process. The output data set also requires the full path name (see above).

-ns nsamp
Input and output number of samples. This value defines the number of blocks of m x n lines in the file. The value may be found in the EV file header as described above and must be specified.

-nt ntrc
Input number of traces. This number defines the number of lines in a block of data defining one sample. This value is computed by finding the product of the number of traces and lines (m*n, as defined above). It must be specified.

-nh nhdr
Input number of header lines. This is the number of lines at the top of the file used to describe the characteristics of the grid. Each line begins with a "#". The program does not attempt to scan for these lines and the number of them must be specified. The default is 22, but strongly recommend verification.

-si nsi
Optional sample interval to put in line header. Default = 1

-V
Enter the command line argument '-V' to get additional printout, which will include the first trace number, line number, and sample value for each block of mxn traces.

-h
-? Enter the command line arguments '-?' or -h to get online help. The program terminates after the help screen is printed.
 

EXAMPLE

The command line


           bgrid -Nfile -Ojunk -ns10 -nt100 -nh 19

will put 100 traces (e.g. 10 lines of 10 traces) with 10 samples each from an EV grid with 19 header lines into a USP formatted file with a sample interval of 1 ms.  

BUGS

unknown  

AUTHOR

Richard Crider  

COPYRIGHT

copyright 2004, Amoco Production Company
          All Rights Reserved
     an affiliate of BP America Inc.


 

Index

NAME
SYNOPSIS
DESCRIPTION
Command line arguments
EXAMPLE
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 20:18:08 GMT, November 23, 2004