- Timestamp:
- Oct 16, 2014, 3:34:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/make_met-aquaplanet.bash
r187 r189 19 19 rootsh=`pwd` 20 20 export PATH=/u/lflmd/bin/gcc_Python-2.7.5/bin:${PATH} 21 ncvarhome=${HOME}/UNSW-CCRC-WRF/tools/python 21 22 errormsg='ERROR -- error -- ERROR -- error' 22 23 … … 34 35 rm ${ofile} > /dev/null 35 36 36 zerovars='LANDMASK:HGT_M:HGT_U:HGT_V:SLPX:SLPY:CON:VAR:OA1:OA2:OA3:OA4:OL1:OL2:OL3:OL4:SKINTEMP:SEAICE '37 zerovars='LANDMASK:HGT_M:HGT_U:HGT_V:SLPX:SLPY:CON:VAR:OA1:OA2:OA3:OA4:OL1:OL2:OL3:OL4:SKINTEMP:SEAICE:SNOW' 37 38 # Fixing p_top at 0.0001 hPa) 38 39 ## zTopvars='PRES:GHT:RH:VV:UU:TT' … … 41 42 ## keepvars='XLAT_M:XLONG_M:XLAT_U:XLONG_U:XLAT_V:XLONG_V:CLAT:CLONG:MAPFAC_M:MAPFAC_V:MAPFAC_U:MAPFAC_MX:MAPFAC_VX:MAPFAC_UX:MAPFAC_MY:MAPFAC_VY:MAPFAC_UY:E:F:SINALPHA:COSALPHA' 42 43 keepvars='' 43 specificvars='LANDUSEF| 1:LU_INDEX|1:SOILTEMP|0:SOILCTOP|0:SCT_DOM|14:SOILCBOT|0:SCB_DOM|14:ALBEDO12M|8:GREENFRAC|0:SNOALB|0:SLOPECAT|0'44 specificvars='LANDUSEF|0:LU_INDEX|1:SOILTEMP|0:SOILCTOP|0:SCT_DOM|14:SOILCBOT|0:SCB_DOM|14:ALBEDO12M|8:GREENFRAC|0:SNOALB|0:SLOPECAT|0' 44 45 # specificvars='' 45 46 thresvars='SST|273.15|below|275.:' 47 dimvars='LANDUSEF|z-dimension0024,15,sumc,1:' 46 48 47 49 cp ${met_emfile} ${ofile} … … 54 56 for var in ${zerov}; do 55 57 echo " "${var}"..." 56 python ${ HOME}/climatescripts/python/nc_var.py -f ${ofile} -v ${var} -o valmod -S mulc,0.58 python ${ncvarhome}/nc_var.py -f ${ofile} -v ${var} -o valmod -S mulc,0. 57 59 ivar=`expr ${ivar} + 1` 58 60 ## exit … … 67 69 varv=`echo ${var} | tr '|' ' ' | awk '{print $2}'` 68 70 echo " "${varn}"..." 69 python ${ HOME}/climatescripts/python/nc_var.py -f ${ofile} -v ${varn} -o valmod -S mulc,0.70 python ${ HOME}/climatescripts/python/nc_var.py -f ${ofile} -v ${varn} -o valmod -S sumc,${varv}71 python ${ncvarhome}/nc_var.py -f ${ofile} -v ${varn} -o valmod -S mulc,0. 72 python ${ncvarhome}/nc_var.py -f ${ofile} -v ${varn} -o valmod -S sumc,${varv} 71 73 ivar=`expr ${ivar} + 1` 72 74 ## exit … … 84 86 if test ${vark} = 'below'; then 85 87 echo " "${varn}" values below "${vart}" to "${varv}"..." 86 python ${ HOME}/climatescripts/python/nc_var.py -f ${ofile} -v ${varn} -o valmod -S lowthres,${vart},${varv}88 python ${ncvarhome}/nc_var.py -f ${ofile} -v ${varn} -o valmod -S lowthres,${vart},${varv} 87 89 else 88 90 echo " "${varn}" values above "${vart}" to "${varv}"..." 89 python ${ HOME}/climatescripts/python/nc_var.py -f ${ofile} -v ${varn} -o valmod -S upthres,${vart},${varv}91 python ${ncvarhome}/nc_var.py -f ${ofile} -v ${varn} -o valmod -S upthres,${vart},${varv} 90 92 fi 93 ivar=`expr ${ivar} + 1` 94 ## exit 95 done # end of thresvars 96 97 # dimension values 98 ## 99 ivar=1 100 echo "dimension values..." 101 dimv=`echo ${dimvars} | tr ':' ' '` 102 for var in ${dimv}; do 103 varn=`echo ${var} | tr '|' ' ' | awk '{print $1}'` 104 varv=`echo ${var} | tr '|' ' ' | awk '{print $2}'` 105 python ${ncvarhome}/nc_var.py -f ${ofile} -v ${varn} -o valmod_dim -S ${varv} 91 106 ivar=`expr ${ivar} + 1` 92 107 ## exit … … 117 132 zvarv=`echo ${zvar} | tr '@' ' ' | awk '{print $2}'` 118 133 echo " "${zvar} 119 python ${ HOME}/PY/nc_var.py -f ${ofile} -v ${zvarn} -o addvals -S '1:last:1:'${zvarv}134 python ${ncvarhome}/nc_var.py -f ${ofile} -v ${zvarn} -o addvals -S '1:last:1:'${zvarv} 120 135 done 121 python ${ HOME}/PY/nc_var.py -f ${ofile} -o gaddattrk -S 'BOTTOM-TOP_GRID_DIMENSION|39|Inp32'136 python ${ncvarhome}/nc_var.py -f ${ofile} -o gaddattrk -S 'BOTTOM-TOP_GRID_DIMENSION|39|Inp32' 122 137 123 138 # Giving the geopotential and temperature at the top (assuming p_top 0.0001 hPa)
Note: See TracChangeset
for help on using the changeset viewer.