Last change
on this file since 455 was
446,
checked in by ymipsl, 8 years ago
|
DCMIP2016 : baroclinic wave runs
YM
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[446] | 1 | module load nco |
---|
| 2 | |
---|
| 3 | project_id=DCMIP2016 |
---|
| 4 | institut_id=IPSL |
---|
| 5 | experiment_id="161-moist_full_physics" |
---|
| 6 | model_id="DYNAMICO" |
---|
| 7 | modeling_realm="atmos" |
---|
| 8 | ensemble="DCMIP2016" |
---|
| 9 | |
---|
| 10 | attr_list="project_id institut_id experiment_id model_id modeling_realm ensemble" |
---|
| 11 | |
---|
| 12 | list="hyai hyam hybi hybm mdt OMEGA500 OMEGA850 OMEGA P0 PHI PHIS P PRECT PS Q1_col_int Q1 Q2_col_int Q2 Qc Q Qr SST T500 T850 T U500 U850 U V500 V850 V W500 W850 W" |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | for i in $list |
---|
| 16 | do |
---|
| 17 | operator_list="" |
---|
| 18 | for j in $attr_list |
---|
| 19 | do |
---|
| 20 | operator_list="${operator_list} -a $j,global,o,c,${!j}" |
---|
| 21 | done |
---|
| 22 | operator_list="$operator_list -a variable,global,o,c,$i" |
---|
| 23 | echo $operator_list |
---|
| 24 | name=output_dcmip2016_regular_${i}.nc |
---|
| 25 | ncks -A -x output_dcmip2016_regular.nc $name |
---|
| 26 | ncatted -O $operator_list $name |
---|
| 27 | done |
---|
| 28 | |
---|
| 29 | for i in $list |
---|
| 30 | do |
---|
| 31 | operator_list="" |
---|
| 32 | for j in $attr_list |
---|
| 33 | do |
---|
| 34 | operator_list="${operator_list} -a $j,global,o,c,${!j}" |
---|
| 35 | done |
---|
| 36 | operator_list="$operator_list -a variable,global,o,c,$i" |
---|
| 37 | echo $operator_list |
---|
| 38 | name=output_dcmip2016_native_${i}.nc |
---|
| 39 | ncks -A -x output_dcmip2016_native.nc $name |
---|
| 40 | ncatted -O $operator_list $name |
---|
| 41 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.