/[MITgcm]/MITgcm_contrib/jmc_script/do_extract_MON
ViewVC logotype

Annotation of /MITgcm_contrib/jmc_script/do_extract_MON

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Nov 9 17:36:04 2020 UTC (4 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Add shell & matlab scripts to process MONITOR output from STDOUT files
 and make simple time-serie plots

1 jmc 1.1 #! /usr/bin/env bash
2    
3     # $Header: $
4     # $Name: $
5    
6     filnam='std_outp'
7     if test $# = 0
8     then
9     echo 'Usage: '`basename $0`' [dir] [pfix] exp'
10     echo " make 1 output file: outp.{exp}"
11     echo " from all {pfix}* files in directory {dir}"
12     echo " (default dir = res_{exp} , default prefix ='std_outp')"
13     echo ' running "extract_MON" for each of them.'
14     exit
15     fi
16    
17     case $# in
18     1) dir='res_'$1 ; exp=$1 ;;
19     2) dir=$1 ; exp=$2 ;;
20     3) dir=$1 ; filnam=$2 ; exp=$3 ;;
21     *) echo 'Too many arguments !' exit ;;
22     esac
23    
24     echo 'process with "extract_MON" '"all ${filnam}* from $dir into 1 file: outp.$exp"
25    
26     listF=`( cd $dir ; ls ${filnam}* )`
27     nn=1
28     for xx in $listF
29     do
30     echo ~/bin/extract_MON $dir/$xx outp.$exp $nn
31     ~/bin/extract_MON $dir/$xx outp.$exp $nn
32     nn=2
33     done
34     exit

  ViewVC Help
Powered by ViewVC 1.1.22