source: configs/dcmip2016/RUNS/CYCLONE/1over16_degree_RJ_PBL/add_global_attr @ 456

Last change on this file since 456 was 456, checked in by ymipsl, 8 years ago

DCMIP2016 : tropical cyclone runs

YM

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1module load nco
2
3project_id=DCMIP2016
4institut_id=IPSL
5experiment_id="162"
6model_id="DYNAMICO"
7modeling_realm="atmos"
8ensemble="DCMIP2016"
9
10attr_list="project_id institut_id experiment_id model_id modeling_realm ensemble"
11
12list="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
15for i in $list
16do
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
27done
28
29for i in $list
30do
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
41done
Note: See TracBrowser for help on using the repository browser.