[gradsusr] how to run multiple files in grads?

Kishore Ragi kishoreragi at gmail.com
Thu May 22 07:50:52 EDT 2014


Hope this shellscript helps you.


#!/bin/bash
your_files=( f1 f2 f3 f4 f5 f6 f7 .... )
for fname in "${your_files[@]}"
do
grads -blc "$fname .gs"
done



Cheers

Kishore


On Thu, May 22, 2014 at 4:32 PM, Jayakrishnan P.R
<prjayakrishnan at gmail.com>wrote:

> May be you need to write a shell scipt like this and execute the shell
> script in terminal.
>
>
>
>
>
>
>
>
>
>
>
>
> *opengrads -bpcx regrid_olr.gs <http://regrid_olr.gs> opengrads -bpcx
> regrid_sst.gs <http://regrid_sst.gs> opengrads -bpcx regrid_temp.gs
> <http://regrid_temp.gs> opengrads -bpcx regrid_wind.gs
> <http://regrid_wind.gs> echo olr2007.grd |grads -bpcx olr2.gs
> <http://olr2.gs> echo sst2007.grd |grads -bpcx sst2.gs <http://sst2.gs>
> echo temp2007.grd |grads -bpcx temp2.gs <http://temp2.gs> echo wind2007.grd
> |grads -bpcx wind1.gs <http://wind1.gs> g77 HBUDGET3.FOR ./a.out*
>
>
> --
> Sincerely
> ***********************************************
> Jayakrishnan.P.R
> Research Fellow (Part Time),
> Department of Atmospheric Sciences
> Cochin University of Science and Technology (CUSAT)
> Cochin-682016
> Mob: 09496026547
>
> ***********************************************
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140522/d0635506/attachment.html 


More information about the gradsusr mailing list