Query related to conversion of segy file and .su files using Seismic Unix


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Query related to conversion of segy file and .su files using Seismic Unix
# 1  
Old 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..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

Interfaces related query

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

2. UNIX for Dummies Questions & Answers

unix commands related to ftp of files..

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

3. UNIX for Dummies Questions & Answers

query related to grep

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

4. UNIX for Dummies Questions & Answers

A query related to 'ls' command

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

5. Shell Programming and Scripting

datetimestamp related query!

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

6. UNIX and Linux Applications

Seismic Unix

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

7. Shell Programming and Scripting

query related to if

wht does below statement mean? if wht does dis -d option do?? TIA. (1 Reply)
Discussion started by: sainathdeg
1 Replies

8. UNIX for Dummies Questions & Answers

awk related query

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

9. Shell Programming and Scripting

sed related query

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

10. Shell Programming and Scripting

Query related to #!/bin/sh

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
Login or Register to Ask a Question
PSSEGYZ(1gmt)						       Generic Mapping Tools						     PSSEGYZ(1gmt)

NAME
pssegyz - Create imagemasked postscript from SEGY file SYNOPSIS
pssegyz SEGYfile -Jparameters -Jz|Zparameters -Rwest/east/south/north[/zmin/zmax][r] -Ddeviation -F[rgb|gray]|-W [ -Bbias ] [ -Cclip ] [ -Eazim/elev[+wlon/lat[/z]][+vx0/y0] ] [ -I ] [ -K ] [ -Lnsamp ] [ -Mntrace ] [ -N ] [ -O ] [ -P ] [ -Sheader_x/header_y ] [ -Uredvel ] [ -V ] [ -Xscale ] [ -Ysample_int ] [ -Z ] DESCRIPTION
pssegyz reads a native (IEEE) format SEGY file and produces a PostScript image of the seismic data. The imagemask operator is used so that the seismic data are plotted as a 1-bit deep bitmap in a single (user-specified) color or gray shade, with a transparent background. The bitmap resolution is taken from the current GMT defaults. The seismic traces may be plotted at their true locations using information in the trace headers (in which case order of the traces in the file is not significant). Standard GMT geometry routines are used so that in principle any map projection may be used, however it is likely that the geographic projections will lead to unexpected results. Beware also that some parameters have non-standard meanings, and a couple of the options for pssegy are not available in pssegyz. Note that the order of operations before the seismic data are plotted is deviation*[clip]([bias]+[normalize](sample value)). Deviation determines how far in the plot coordinates a [normalized][biased][clipped] sample value of 1 plots from the trace location. The SEGY file should be a disk image of the tape format (ie 3200 byte text header, which is ignored, 400 byte binary reel header, and 240 byte header for each trace) with sam- ples as native real*4 (IEEE real on all the platforms to which I have access) SEGYfile Seismic data set to be imaged -J Selects the map projection. Scale is UNIT/degree, 1:xxxxx, or width in UNIT (upper case modifier). UNIT is cm, inch, or m, depend- ing on the MEASURE_UNIT setting in .gmtdefaults4, but this can be overridden on the command line by appending c, i, or m to the scale/width value. When central meridian is optional, default is center of longitude range on -R option. Default standard parallel is the equator. For map height, max dimension, or min dimension, append h, +, or - to the width, respectively. More details can be found in the psbasemap man pages. CYLINDRICAL PROJECTIONS: -Jclon0/lat0/scale (Cassini) -Jcyl_stere/[lon0/[lat0/]]scale (Cylindrical Stereographic) -Jj[lon0/]scale (Miller) -Jm[lon0/[lat0/]]scale (Mercator) -Jmlon0/lat0/scale (Mercator - Give meridian and standard parallel) -Jo[a]lon0/lat0/azimuth/scale (Oblique Mercator - point and azimuth) -Jo[b]lon0/lat0/lon1/lat1/scale (Oblique Mercator - two points) -Joclon0/lat0/lonp/latp/scale (Oblique Mercator - point and pole) -Jq[lon0/[lat0/]]scale (Cylindrical Equidistant) -Jtlon0/[lat0/]scale (TM - Transverse Mercator) -Juzone/scale (UTM - Universal Transverse Mercator) -Jy[lon0/[lat0/]]scale (Cylindrical Equal-Area) CONIC PROJECTIONS: -Jblon0/lat0/lat1/lat2/scale (Albers) -Jdlon0/lat0/lat1/lat2/scale (Conic Equidistant) -Jllon0/lat0/lat1/lat2/scale (Lambert Conic Conformal) -Jpoly/[lon0/[lat0/]]scale ((American) Polyconic) AZIMUTHAL PROJECTIONS: -Jalon0/lat0[/horizon]/scale (Lambert Azimuthal Equal-Area) -Jelon0/lat0[/horizon]/scale (Azimuthal Equidistant) -Jflon0/lat0[/horizon]/scale (Gnomonic) -Jglon0/lat0[/horizon]/scale (Orthographic) -Jglon0/lat0/altitude/azimuth/tilt/twist/Width/Height/scale (General Perspective). -Jslon0/lat0[/horizon]/scale (General Stereographic) MISCELLANEOUS PROJECTIONS: -Jh[lon0/]scale (Hammer) -Ji[lon0/]scale (Sinusoidal) -Jkf[lon0/]scale (Eckert IV) -Jk[s][lon0/]scale (Eckert VI) -Jn[lon0/]scale (Robinson) -Jr[lon0/]scale (Winkel Tripel) -Jv[lon0/]scale (Van der Grinten) -Jw[lon0/]scale (Mollweide) NON-GEOGRAPHICAL PROJECTIONS: -Jp[a]scale[/origin][r|z] (Polar coordinates (theta,r)) -Jxx-scale[d|l|ppow|t|T][/y-scale[d|l|ppow|t|T]] (Linear, log, and power scaling) -R west, east, south, and north specify the Region of interest, and you may specify them in decimal degrees or in [+-]dd:mm[:ss.xxx][W|E|S|N] format. Append r if lower left and upper right map coordinates are given instead of w/e/s/n. The two shorthands -Rg and -Rd stand for global domain (0/360 and -180/+180 in longitude respectively, with -90/+90 in latitude). Alterna- tively, specify the name of an existing grid file and the -R settings (and grid spacing, if applicable) are copied from the grid. -D gives the deviation in X units of the plot for 1.0 on the scaled trace, This may be a single number (applied equally in X and Y directions) or devX/devY -E Sets the viewpoint's azimuth and elevation (for perspective view) [180/90]. For frames used for animation, you may want to append + to fix the center of your data domain (or specify a particular world coordinate point with +wlon0/lat[/z]) which will project to the center of your page size (or specify the coordinates of the projected view point with +vx0/y0). -F[rgb|gray] Fill trace (variable area, defaults to filling positive). rgb or gray gives the color with which the imagemask is filled. -W Draw wiggle trace. You must specify at least one of -W and -F. OPTIONS
No space between the option flag and the associated arguments. -A Flip the default byte-swap state (default assumes data have a bigendian byte-order). -B Bias to apply to data (added to sample values). -C Sample value at which to clip data (clipping is applied to both positive and negative values). -I Fill negative rather than positive excursions. -K More PostScript code will be appended later [Default terminates the plot system]. -L Override number of samples per trace in reel header (program attempts to determine number of samples from each trace header if pos- sible to allow for variable length traces). -M Override number of traces specified in reel header. Program detects end of file (relatively) gracefully, but this parameter limits number of traces that the program attempts to read. -N Normalize trace by dividing by rms amplitude over full trace length. -O Selects Overlay plot mode [Default initializes a new plot system]. -P Selects Portrait plotting mode [Default is Landscape, see gmtdefaults to change this]. -S Read trace locations from trace headers: header is either c for CDP, o for offset, b<num> to read a long starting at byte <num> in the header (first byte corresponds to num=0), or a number to fix the location. First parameter for x, second for y. Default has X and Y given by trace number. -U Apply reduction velocity by shifting traces upwards by redvel/|offset|. Negative velocity removes existing reduction. Units should be consistent with offset in trace header and sample interval. -V Selects verbose mode, which will send progress reports to stderr [Default runs "silently"]. -X Multiply trace locations by scale before plotting. -Y Override sample interval in reel header. -Z Do not plot traces with zero rms amplitude. EXAMPLES
To plot the SEGY file wa1.segy with normalized traces plotted at true offset locations, clipped at +-3 and with wiggle trace and positive variable area shading in black, use pssegyz wa1.segy -JX5/-5 -D1 -Jz0.05 -E180/5 -R0/100/0/10/0/10 -C3 -N -So -W -Fblack > segy.ps BUGS
Variable area involves filling four-sided figures of distressing generality. I know that some of the more complex degenerate cases are not dealt with correctly or at all; the incidence of such cases increases as viewing angles become more oblique, and particularly as the view- ing elevation increases. Wiggle-trace plotting is not affected. SEE ALSO
GMT(1), pssegy(1) GMT 4.5.7 15 Jul 2011 PSSEGYZ(1gmt)