08-22-2012
Query related to conversion of segy file and .su files using Seismic Unix
hi
M using ubuntu 11.04....and has installed Seismic Unix on it....
I want to process some unprocessed segy data using Seismic Unix....
i have converted .segy file to .su using
segyread tape=file1.seg verbose=1 endian=0 | segyclean > smallfile.su
and got 3 files
-smallfile.su
-header
-binary
Now my queries are:
1. How to verify that .su file created is valid or not?
2. The .su file i got ....Is this the processed file?
-Or the processing is yet to be performed on this .su file?
-If it is processed how to read data from it?
2. How to convert .su file to .seg file?
as when m running
segywrite < smallfile.su tape=file1.seg verbose=1 endian=0 | < processedfile.seg
its giving error as
segywrite: fgettr.c: bad first header
plzz help..
Regards..
Last edited by Ankita Singla; 08-22-2012 at 09:13 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi All
Why is #!/bin/sh being used in most of the ksh scripts......?
I have seen this (#!/bin/sh) being used at the start of the script
Regards
Suresh (2 Replies)
Discussion started by: sureshg_sampat
2 Replies
2. Shell Programming and Scripting
Hi
I have a file which looks like this
//string = "abcd"; //info
//string = "*pqrs"; //add
string = "#123"; //sub
//string = "#1234567890"
data = check(string)
//string = "#1234567890"
I want to modify this as
string = "#987"; //mult
data = check(string)
How do i do that? (1 Reply)
Discussion started by: gopsman
1 Replies
3. UNIX for Dummies Questions & Answers
hi,
I have to extract a column from a file and then updated that column..??
Now i can use wak for extracting it and then how to update it..
$ awk' {print $5}' input_file
Can i use sed command here piping it to the output from the awk command.. (2 Replies)
Discussion started by: abhisek.says
2 Replies
4. Shell Programming and Scripting
wht does below statement mean?
if
wht does dis -d option do??
TIA. (1 Reply)
Discussion started by: sainathdeg
1 Replies
5. UNIX and Linux Applications
Hello,
is there anybody who has experiences with the program "seismic unix" and the included data-format .su. I want to convert su in segy format. Is there anybody who knows, if this is possible?
Thanks a lot
Christine (1 Reply)
Discussion started by: Christine_83
1 Replies
6. Shell Programming and Scripting
Hi all,
I have put a query in a thread but didn't get any reply. Hoping to get a reply here.
I have a file in that one line resembles like below...
Forwarded by Deepak on 11/15/2009 10:28 AM EST
ofcourse AM can be PM also...
so what i need is first i need to get only... (1 Reply)
Discussion started by: smarty86
1 Replies
7. UNIX for Dummies Questions & Answers
I am executing the ls command to show the contents of a folder,
it shows some number in front of word total as highlighted in blue color below quotes.
Can anyone please share that what it is? (2 Replies)
Discussion started by: Zaib
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
The result for 'grep "cert_codes" /develop/sales/appl.srce/*.4gl' command will be saved at aa.txt
grep "cert_codes" /develop/sales/appl.srce/*.4gl >aa.txt
But I am not sure, whether, all result stored in .txt file in case of multi-line result.
Please revert back if... (2 Replies)
Discussion started by: pbankar
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am new to unix , I was planning to write a script that will FTP files to destination folder. , Please guide me what are the various networking commands that unix will help in this ftp process..?:confused: (1 Reply)
Discussion started by: rahul125
1 Replies
10. Emergency UNIX and Linux Support
I need to list the interfaces that uses FTP instead of SFTP on my applications that are on AIX servers. How do I get that list of IP addresses that connect to my applications via FTP? (2 Replies)
Discussion started by: ggayathri
2 Replies
LEARN ABOUT MOJAVE
ddi_dma_segtocookie
ddi_dma_segtocookie(9F) Kernel Functions for Drivers ddi_dma_segtocookie(9F)
NAME
ddi_dma_segtocookie - convert a DMA segment to a DMA address cookie
SYNOPSIS
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_dma_segtocookie(ddi_dma_seg_t seg, off_t *offp, off_t *lenp, ddi_dma_cookie_t *cookiep);
INTERFACE LEVEL
This interface is obsolete. ddi_dma_nextcookie(9F) should be used instead.
PARAMETERS
seg A DMA segment.
offp A pointer to an off_t. Upon a successful return, it is filled in with the offset. This segment is addressing within the
object.
lenp The byte length. This segment is addressing within the object.
cookiep A pointer to a DMA cookie (see ddi_dma_cookie(9S)).
DESCRIPTION
ddi_dma_segtocookie() takes a DMA segment and fills in the cookie pointed to by cookiep with the appropriate address, length, and bus type
to be used to program the DMA engine. ddi_dma_segtocookie() also fills in *offp and *lenp, which specify the range within the object.
RETURN VALUES
ddi_dma_segtocookie() returns:
DDI_SUCCESS Successfully filled in all values.
DDI_FAILURE Failed to successfully fill in all values.
CONTEXT
ddi_dma_segtocookie() can be called from user or interrupt context.
EXAMPLES
Example 1: ddi_dma_segtocookie() example
for (win = NULL; (retw = ddi_dma_nextwin(handle, win, &nwin)) !=
DDI_DMA_DONE; win = nwin) {
if (retw != DDI_SUCCESS) {
/* do error handling */
} else {
for (seg = NULL; (rets = ddi_dma_nextseg(nwin, seg, &nseg)) !=
DDI_DMA_DONE; seg = nseg) {
if (rets != DDI_SUCCESS) {
/* do error handling */
} else {
ddi_dma_segtocookie(nseg, &off, &len, &cookie);
/* program DMA engine */
}
}
}
}
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Stability Level |Obsolete |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5), ddi_dma_nextcookie(9F). ddi_dma_nextseg(9F), ddi_dma_nextwin(9F), ddi_dma_sync(9F), ddi_dma_cookie(9S)
Writing Device Drivers
SunOS 5.10 27 Sep 2002 ddi_dma_segtocookie(9F)