PDA

View Full Version : UNIX question (spline command)


Ch1m3r4
06-03-2004, 09:56 AM
well, what does it do? I mean, I know it interpolates points or whatever.

Here is the issue...I have a script written by someone else that I will need to use. He calls the spline command in the script, but doesn't input anything into it in the script.

here's what I mean:

mkdir case1/run_jjjj
cp case1jjjj.inp deice.inp
lewice < input.inp
spline
cat tectemp1.dat tecplot1.dat > tectemp1a.dat
cat tectemp2.dat tecplot2.dat > tectemp2a.dat
mv tectemp1a.dat tectemp1.dat
mv tectemp2a.dat tectemp2.dat
mv tecplot*.dat case1/run_jjjj

lewice is a program, it makes a whole bunch of output files, prints some stuff to the screen (which is echo'd to a file btw). then he calls spline, then goes straight to concatenating some files. I will eventually be able to ask the writer, but not for a while, so I was looking for some input.

ameoba
06-03-2004, 02:29 PM
from the manpage:


SPLINE(1) GNU Plotting Utilities SPLINE(1)

NAME
spline - interpolate datasets using splines under tension

SYNOPSIS
spline [ options ] [ files ]


Spline reads from stdin if it's not explicitly given input. I doubt that script ever terminates (unless there's some sort config file that makes spline read from some other file). I'd be suprised if the script even terminates...

Ch1m3r4
06-03-2004, 03:58 PM
I know it terminates because he generated results and published them...
unless he had a different version that he modified and forgot to give me.

I'm sending him an email tomorrow asking what was up with that.