Dear all ferret user:
I write a script to treat the CTD data.
(Acctually, it's offered by another ferret user! I just modify it.)
And i
don't know how to treat a lot of files by ferret script.
So, i use
fortran to make script (run_bat.jnl) like:
go plotCTD
arg1 arg2 arg3 ...
go
plotCTD arg1 arg2 arg3 ...
go plotCTD
arg1 arg2 arg3 ...
go plotCTD
arg1 arg2 arg3 ...
:
:
:
go
plotCTD arg1 arg2 arg3 ...
exit
(arg1 is
input filename, and others is depth, date,......)
Then,
i write a shell script to run in batch mode.
It just
like :
#/bin/csh
cd
~/tmp/CR564avg/
ferret -gif <
run_bat.jnl
cd
~/tmp/CR565avg/
ferret
-gif < run_bat.jnl
Strange
things happen!!
If i use
shell script to make ferret work, sometimes it makes gif file.
Not all
the time it works!!
I see the
message ferret show on the screen, it seems did'nt recognize the first
line.
And
it reads run_bat.jnl from the last
few line, even in the middle of sentence (like tCTD arg1
arg2....)
If i use
ferret in normal way , it just like
%ferret
-gif
NOAA/PMEL
TMAP
Program FERRET Version 5.22 - 07/27/00 06-Mar-01 18:18 yes?go
run_bat.jnl
It works
fine!!
First, i
think it's control character like ^M which CTD program datcnv.exe
cause the problem.
I delete these character
manually to try it.
The strange things
still happen.
Is there anyone can give
me an answer??
Thanks a
lot!!
danish
|