Changeset 189 in lmdz_wrf for trunk


Ignore:
Timestamp:
Oct 16, 2014, 3:34:25 PM (10 years ago)
Author:
lfita
Message:

Adding zeroing of SNOW and LANDUSEF(==16) == 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/make_met-aquaplanet.bash

    r187 r189  
    1919  rootsh=`pwd`
    2020  export PATH=/u/lflmd/bin/gcc_Python-2.7.5/bin:${PATH}
     21  ncvarhome=${HOME}/UNSW-CCRC-WRF/tools/python
    2122  errormsg='ERROR -- error -- ERROR -- error'
    2223
     
    3435  rm ${ofile} > /dev/null
    3536
    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'
    3738# Fixing p_top at 0.0001 hPa)
    3839##  zTopvars='PRES:GHT:RH:VV:UU:TT'
     
    4142##  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'
    4243  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'
    4445#  specificvars=''
    4546  thresvars='SST|273.15|below|275.:'
     47  dimvars='LANDUSEF|z-dimension0024,15,sumc,1:'
    4648
    4749  cp ${met_emfile} ${ofile}
     
    5456  for var in ${zerov}; do
    5557    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.
    5759    ivar=`expr ${ivar} + 1`
    5860##    exit
     
    6769    varv=`echo ${var} | tr '|' ' ' | awk '{print $2}'`
    6870    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}
    7173    ivar=`expr ${ivar} + 1`
    7274##    exit
     
    8486    if test ${vark} = 'below'; then
    8587      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}
    8789    else
    8890      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}   
    9092    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}
    91106    ivar=`expr ${ivar} + 1`
    92107##    exit
     
    117132    zvarv=`echo ${zvar} | tr '@' ' ' | awk '{print $2}'`
    118133    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}
    120135  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'
    122137
    123138# Giving the geopotential and temperature at the top (assuming p_top 0.0001 hPa)
Note: See TracChangeset for help on using the changeset viewer.