06-15-2011
Give us sample data, three rows isn't enough to test.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
We are running a AIX 5.2 OS.
Would anyone happen to know what the max value for a process id could be?
Thanks
jerardfjay :) (0 Replies)
Discussion started by: jerardfjay
0 Replies
2. Shell Programming and Scripting
hello friends...:-)
i need some help
i have a file cantain like this
Star1 ,NetWork,09/02/2008
Star1 ,NetWork,10/02/2008
Star1 ,NetWork,11/02/2008
Star2 ,NetWork,08/03/2008
Star2 ,NetWork,09/04/2008
Star2 ,NetWork,10/05/2008
i need to find out min, max dates
the output look like... (6 Replies)
Discussion started by: gemini106
6 Replies
3. Shell Programming and Scripting
hi!
i have a file like the attachement.
I'd like to get for each line the min, max and average values. (there is 255 values for each line)
how can i get that ?
i try this, is it right?
BEGIN {FS = ","; OFS = ";";max=0;min=0;moy=0;total=0;freq=890}
$0 !~ /Trace1:/ {
... (1 Reply)
Discussion started by: riderman
1 Replies
4. Shell Programming and Scripting
Hi,
In a field, I should receive the date with time stamp in a particular field. But sometimes the vendor sends just the date or the timestamp or correctl the date×tamp. I have to figure out the the data is a date or time stamp or date×tamp.
If it is date then append "<space>00:00:00"... (1 Reply)
Discussion started by: machomaddy
1 Replies
5. Shell Programming and Scripting
Dear all,
I have 2 questions.
I have a file with many rows which has date of the format YYYYMMDD.
1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too.
2. After converting the date to... (10 Replies)
Discussion started by: 2001.arun
10 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The program is supposed to read in text from a given file ( different samples provided in the homework but not... (1 Reply)
Discussion started by: c++newb
1 Replies
7. Shell Programming and Scripting
Dear All,
I have data like this,
input:
1254 10125
1254 10126
1254 10127
1254 10128
1254 10129
1255 10130
1255 10131
1255 10132
1255 10133
1256 10134
1256 10135
1256 10137... (3 Replies)
Discussion started by: aksin
3 Replies
8. Shell Programming and Scripting
Hi,
I have a file which looks like this:
FID IID MISS_PHENO N_MISS N_GENO F_MISS
12AB43131 12AB43131 N 17774 906341 0.01961
65HJ87451 65HJ87451 N 10149 906341 0.0112
43JJ21345 43JJ21345 N 2826 906341 0.003118I would... (11 Replies)
Discussion started by: kayakj
11 Replies
9. Shell Programming and Scripting
Gents,
I have a big file file like this.
5100010002
5100010004
5100010006
5100010008
5100010010
5100010012
5102010002
5102010004
5102010006
5102010008
5102010010
5102010012
The file is sorted and I would like to find the min and max value, taking in the consideration key1... (3 Replies)
Discussion started by: jiam912
3 Replies
10. Shell Programming and Scripting
You have a log file as attached in sample input with various operations and time taken by each of them. Write a script to find the min and max time taken for each operation. Sample output is attached.
Sample Input is given as below:
operation1,83621
operation2,72321
operation3,13288... (1 Reply)
Discussion started by: Chandan_Bose
1 Replies
LEARN ABOUT DEBIAN
segy2grd
SEGY2GRD(1gmt) Generic Mapping Tools SEGY2GRD(1gmt)
NAME
segy2grd - Converting SEGY file to grid file format
SYNOPSIS
segy2grd segyfile -Ggrdfile -Ixinc[unit][=|+][/yinc[unit][=|+]] -Rwest/east/south/north[r] [ -A[n|z] ] [ -Dxname/yname/zname/scale/off-
set/title/remark ] [ -F ] [ -Nnodata ] [ -S[zfile] ] [ -V ] [ -Z[flags] ] [ -:[i|o] ] [ -bi[s|S|d|D[ncol]|c[var1/...]] ]
DESCRIPTION
segy2grd reads an IEEE SEGY file and creates a binary grid file. Either a simple mapping (equivalent to xyz2grd -Z) or a more complicated
averaging where a particular grid cell includes values from more than one sample in the SEGY file can be done. segy2grd will report if
some of the nodes are not filled in with data. Such unconstrained nodes are set to a value specified by the user [Default is NaN]. Nodes
with more than one value will be set to the average value.
segyfile is an IEEE floating point SEGY file. Traces are all assumed to start at 0 time/depth.
-G grdfile is the name of the binary output grid file.
-I x_inc [and optionally y_inc] is the grid spacing. Append m to indicate minutes or c to indicate seconds.
-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.
OPTIONS
-A Add up multiple values that belong to the same node (same as -Az). Append n to simply count the number of data points that were
assigned to each node. [Default (no -A option) will calculate mean value]. Not used for simple mapping.
-D Give values for xname, yname, zname, scale, offset, title, and remark. To leave some of these values untouched, specify = as the
value.
-F Force pixel registration [Default is grid registration].
-N No data. Set nodes with no input sample to this value [Default is NaN].
-S set variable spacing header is c for cdp, o for offset, b<number> for 4-byte float starting at byte number If -S not set, assumes
even spacing of samples at the dx, dy supplied with -I
-L Override number of samples in each trace
-X applies scalar x-scale to coordinates in trace header to match the coordinates specified in -R
-Y Specifies sample interval as s_int if incorrect in the SEGY file
-M Fix number of traces to read in. Default tries to read 10000 traces. -M0 will read number in binary header, -Mn will attempt to
read only n traces.
-V Selects verbose mode, which will send progress reports to stderr [Default runs "silently"].
EXAMPLES
To create a grid file from an even spaced SEGY file test.segy, try
segy2grd test.segy -I0.1/0.1 -Gtest.grd -R198/208/18/25 -V
Note that this will read in 18-25s (or km) on each trace, but the first trace will be assumed to be at X=198
To create a grid file from the SEGY file test.segy, locating traces according to the CDP number, where there are 10 CDPs per km and
the sample interval is 0.1, try
segy2grd test.segy -Gtest.grd -R0/100/0/10 -I0.5/0.2 -V -X0.1 -Y0.1
Because the grid interval is larger than the SEGY file sampling, the individual samples will be averaged in bins
SEE ALSO
GMT(1), grd2xyz(1), grdedit(1), pssegy(1)
GMT 4.5.7 15 Jul 2011 SEGY2GRD(1gmt)