I'll assume you're on a UNIX system and Perl and gnuplot are available.
The following (cheap and pretty dirty) Perl script will extract the two columns you're interested in:
(Sorry... the forum software does awful things to the indentation of the script and I'm not sure how to prevent that.)
This would be run using:
and produce
A simple gnuplot command file to plot two curves might be:
set terminal postscript landscape;
plot "data.file.extracted_data" with lines, "data2.file.extracted_data" with lines;
If these were saved in a file named "gnuplot.cmds", you would generate the plot using:
If you need to plot more than two curves, add another datafile name containing extracted data file to the end of the "plot" command and rerun the above gnuplot command. You could also add extra commands to control the X and Y axes, etc. (above the line containing the "plot" command).
Hope this helps.
--
Rick
Last edited by Yogesh Sawant; 04-04-2009 at 07:11 AM..
Reason: added code tags
How do I delete text in each line from the first character up to a certain pattern, ie. 'qmuser.' and then delete from the next occurence of a dot to the end of the sentence
For example: -
LTSB Renewal Notice Travel Pack --- d \qmaster\spool1\qmuser.8664_LM245_20031216094308.ps.0
From this... (7 Replies)
I have a simple gnuplot question. I have a set of points (list of x,y,z values; irregularly spaced, i.e. no grid) that I want to plot. I want the plot to look like this:
- map view (no 3D view)
- color of each point should depend on z-value.
- I want to define my own color scale
- plot should... (1 Reply)
Dear,
I want to perform a plotting using xgraph, and the plotting data (ping.txt) is as below. For the graph I just want to plot the time for x-axis (line count) and the RTT for y-axis (time in ms). Below are script i write for that purpose but it seen did not work. Any guide for me because i... (1 Reply)
I have a set of data that looks similar to the following in UNIX:
0.12_0.008_fall_ff.out:bisect return: 0.08056640625
0.12_0.04_fall_ff.out:bisect return: 0.07470703125
0.12_0.12_fall_ff.out:bisect return: 0.06298828125
0.12_0.24_fall_ff.out:bisect return: 0.05126953125
Previously I have... (4 Replies)
Given the following text in a file named extract.txt:
listenPort:=25
smtpDestination:=2
enableSSL:=
I am trying to extract only the value 2 following smtpDestination:=
Someone had suggested I use:
sed -e "s/^smtpDestination:=\(.*\)$/\1/" extract.txt
but this returns:
listenPort:=25
2
... (2 Replies)
Hi there, I have a bunch of vlan tagged network interfaces that are named as follows
e1000g111000
e1000g99001
e1000g3456000
nge2002
where the 'e1000g' and 'nge' parts of the name are the driver, the red and blue bits above define the VLAN and the last digit on the end defines the... (3 Replies)
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
I have a txt file of the following format
>ab_
qwerty
>rt_
hfjkil
>Ty2
hglashglkasghkf;
>P2
aklhfklflkkgfgkfl
>ui_
vnllkdskkkffkfkkf
>we32
vksksjksj;lslsf'sk's's
....
.....
I want to split this big file based on the header (>) (5 Replies)
This is my input file:
a|b|c(ef)|g|h(km)|p
My output file should look like:
a|b|ef|g|km|p
That is, pipe is the delimiter. The data within pipe must be displayed as it is but if it encounters any data within parentheses, then only the data within parentheses has to be displayed ( the data... (2 Replies)
One of the great thing about unix is the ability to pipe multiple programs together to manipulate data. Plain, unstructured text is the most common type of data that is passed between programs, but these days JSON is becoming more popular.
I thought it would be fun to pipe together some command... (1 Reply)
Discussion started by: kbrazil
1 Replies
LEARN ABOUT DEBIAN
gpiv_sstrain
GPIV_SSTRAIN(1) General Commands Manual GPIV_SSTRAIN(1)NAME
gpiv_sstrain - Calculates the shear strain from PIV data.
SYNOPSIS
gpiv_sstrain [-d N] [-h | --help] [--no_g ] [-p | --print] [-g | --g] [-v | --version] [filename] < stdin > stdout
DESCRIPTION
gpiv_sstrain calculates the shear strain from PIV data. You can choose from several differential schemes: central differentiation, least
squares and Richardson extrapolation. The output can be generated as ASCII data containing four columns or as GNUPlot Data format that
allows one to view/print the data as contour plots.
The configuration parameters (containing the POST key) may be overruled by the command line options, as explained below.
Options-d N Differential type to be used: central difference (N=0), least squares (N=1), Richardson interpolation (N=2), circulation method
(N=3)
-h | --help
On-line help
-p | --print
Print parameters, command line options and eventually used input and output filenames to stdout. The output is identic of file-
name.par, in case filename is used.
-g Show contour plot of the output with gnuplot.
--no_g Suppresses to show contour plot of the output with gnuplot.
-v | --version
Print version information on standard output, then exit successfully.
filename Input PIV data file. Overrides stdin and stdout. The
output will be written to filename.sstr. Parameters are stored in filename.par and may be used for future use by including them in
./gpivrc.
SEE ALSO
gpivtools
AUTHOR
Gerber Van der Graaf
8 November 2006 GPIV_SSTRAIN(1)