Last change
on this file since 5501 was
5501,
checked in by aclsce, 4 years ago
|
First import of IPSLCM6.5_work_ENSEMBLES working configuration
|
-
Property svn:executable set to
*
|
File size:
896 bytes
|
Line | |
---|
1 | #!/bin/ksh |
---|
2 | |
---|
3 | # CALLS: bdy_reorder.exe |
---|
4 | |
---|
5 | #set -ax |
---|
6 | usage () |
---|
7 | { |
---|
8 | echo |
---|
9 | echo " bdy_reorder" |
---|
10 | echo " ************" |
---|
11 | echo |
---|
12 | echo " usage: ${0##*/} [-c] file_in file_out" |
---|
13 | echo |
---|
14 | echo " flags: -c target file is a coordinates.bdy.nc file" |
---|
15 | echo " -t template file" |
---|
16 | echo |
---|
17 | exit 1 |
---|
18 | } |
---|
19 | |
---|
20 | ln_coordinates=".false." |
---|
21 | file_template="" |
---|
22 | |
---|
23 | while getopts ct: opt |
---|
24 | do |
---|
25 | case ${opt} in |
---|
26 | c) |
---|
27 | ln_coordinates=".true." |
---|
28 | ;; |
---|
29 | t) |
---|
30 | file_template=${OPTARG} |
---|
31 | ;; |
---|
32 | [?]) usage |
---|
33 | ;; |
---|
34 | esac |
---|
35 | done |
---|
36 | shift $(expr ${OPTIND} - 1) |
---|
37 | |
---|
38 | if [[ $# < 2 ]] ; then |
---|
39 | usage |
---|
40 | fi |
---|
41 | |
---|
42 | script_dir=$(dirname $0) |
---|
43 | |
---|
44 | file_in=$1 |
---|
45 | file_out=$2 |
---|
46 | |
---|
47 | cat > nam_bdy_reorder << EOC |
---|
48 | &nam_bdy_reorder |
---|
49 | file_in='${file_in}' |
---|
50 | file_out='${file_out}' |
---|
51 | file_template='${file_template}' |
---|
52 | ln_coordinates=${ln_coordinates} |
---|
53 | EOC |
---|
54 | echo "/" >> nam_bdy_reorder |
---|
55 | |
---|
56 | ${script_dir}/bdy_reorder.exe |
---|
57 | |
---|
58 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.