segy2css [-event] [-ftbl] "fname"
This program reads seismic data in PASSCAL SEGY format and converts them to CSS format version 3.0.
The program reads PASSCAL SEGY data, the filename for which should be specified on the command line. The filename should be specified in quotes (""). This allows the user to use wildcards in filenames and handle entire groups of files at once, refer to long names with abbrevations, and use part of names when we are uncertain about complete versions. For example, if all data under directory /test/data should be converted to CSS format, the command line should be:
- segy2css "/test/data/*"
The parameter -event can be optionally specified on the command line. If this parameter is specified on the command line then the program makes one wfdisc file for all data from one directory, even if those data have a different start time. If that parameter is not specified in the command line (i.e. by default), the program will make as many wfdisc files as there are different start times.
Each PASSCAL SEGY file has a 240 byte header, which contains information about the data. The information includes: channel number, number of samples, sample rate, instrument serial number, event start time and more. The program builds a wfdisc file using these parameters.
The program makes data and wfdisc files in the current directory. The name of the data file will be in the form YYDDDHHMMSS.w and the name of the wfdisc file will be in the form YYDDDHHMMSS.wfdisc.
A conventional name for the specific instrument code can be specified in the ascii file. The full name of that file should be specified with the argument -ftbl in a command line (where tbl is full file name). A conventional name also can be specified in the ".segy2css" file, which should be in the HOME directory. In this case the program automatically looks for that file and reads it, so it's not necessary to specify -ftbl option. The format of the tbl and ".segy2css" files are:
- INSNUM STIME ETIME STANAME
where INSNUM is the instrument serial number, STIME and ETIME are start and end time when the instrument was operational; and STANAME is the station code for the instrument serial number. The time format is YYYYDDD:HH:MM:SS.s.
To convert all PASSCAL SEGY data whose names start with '92.345' from the directory /data/segy:
- segy2css "/data/segy/92.345*"
To convert all PASSCAL SEGY data from the directory 'segy' and put all information in one wfdisc file:
- segy2css -event "segy/*"
NOTE: If on the command line you are specifying the whole directory as fname, then that directory should contains only PASSCAL SEGY data and nothing else.