[Thread Prev][Thread Next][Index]

Re: go command (batch file?)



On Wed, 23 Feb 2005, Livingston, Claire wrote:

> Hi all,
> 
> We are trying to make ferret more automated.  One way would be to write a
> script in something else calling for one particular day a month to run a
> ferret script.  The question I have is, how to execute the script?
> 
> I know we can write a script to call up ferret, but because you have to be
> in ferret to say go *.jnl, a batch file would not work.

Hi Claire,

You can do this like:

	ferret -batch < your.jnl
or	ferret -gif < your.jnl


For instance I have a monthly process that creates a bottom temperature
plot where the Ferret part of it is:

echo "use monthave.$1.cdf" > gif.jnl
echo "FILL/K=1/levels=(-2,28,.3)/KEY=CONTINUOUS/NOLABELS/NOAXIS/NOKEY TEMP,'X','Y'" >> gif.jnl
echo "FRAME/FILE=$1.gif" >> gif.jnl
echo "quit" >> gif.jnl

ferret -gif < gif.jnl

Good luck,

Steve

______________________________________________________________________
 Steve Cousins, Ocean Modeling Group    Email: cousins@umit.maine.edu
 Marine Sciences, 208 Libby Hall        http://rocky.umeoce.maine.edu
 Univ. of Maine, Orono, ME 04469        Phone: (207) 581-4302
 
> I would be grateful for any suggestions.
> Thanks,
> 
> Claire Livingston
> Oceanographer
> Naval Oceanographic Office
> Stennis Space Center
> (228) 689-8263
> livingstonc@navo.navy.mil



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement