Changeset 327 in lmdz_wrf
- Timestamp:
- Feb 26, 2015, 6:30:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r254 r327 717 717 718 718 # Variable name might come with a statistical surname... 719 stats=['min','max','mean','stdv' ]719 stats=['min','max','mean','stdv', 'sum'] 720 720 721 721 ifst = False … … 740 740 varvals = ['ath', 'total_thermal_plume_cover', 0., 1., \ 741 741 'total|column|thermal|plume|cover', '1', 'YlGnBu'] 742 elif varn == 'acprc' or varn == 'RAINC': 743 varvals = ['acprc', 'accumulated_cmulus_precipitation', 0., 3.e4, \ 744 'accumulated|cmulus|precipitation', 'mm', 'Blues'] 745 elif varn == 'acprnc' or varn == 'RAINNC': 746 varvals = ['acprnc', 'accumulated_non-cmulus_precipitation', 0., 3.e4, \ 747 'accumulated|non-cmulus|precipitation', 'mm', 'Blues'] 742 748 elif varn == 'bils' or varn == 'LBILS': 743 749 varvals = ['bils', 'surface_total_heat_flux', -100., 100., \ … … 891 897 3.e-3, 'convective|northward|wind|tendency', 'ms-2', 'seismic'] 892 898 elif varn == 'dvdyn' or varn == 'LDVDYN': 893 varvals = ['dvdyn', 'dynamics_northward_wind_tendency', -3.e-3, \899 varvals = ['dvdyn', 'dynamics_northward_wind_tendency', -3.e-3, \ 894 900 3.e-3, 'dynamics|difussion|northward|wind|tendency', 'ms-2', 'seismic'] 895 901 elif varn == 'dvvdf' or varn == 'LDVVDF': 896 902 varvals = ['dvvdf', 'vertical_difussion_northward_wind_tendency', -3.e-3, \ 897 903 3.e-3, 'vertical|difussion|northward|wind|tendency', 'ms-2', 'seismic'] 898 elif varn == 'evspsbl' or varn == 'LEVAP' or varn == 'evap': 904 elif varn == 'etau' or varn == 'ZNU': 905 varvals = ['etau', 'etau', 0., 1, 'eta values on half (mass) levels', '-', \ 906 'reds'] 907 elif varn == 'evspsbl' or varn == 'LEVAP' or varn == 'evap' or varn == 'SFCEVPde': 899 908 varvals = ['evspsbl', 'water_evaporation_flux', 0., 1.5e-4, \ 900 909 'water|evaporation|flux', 'kgm-2s-1', 'Blues'] 910 elif varn == 'evspsbl' or varn == 'SFCEVPde': 911 varvals = ['evspsblac', 'water_evaporation_flux_ac', 0., 1.5e-4, \ 912 'accumulated|water|evaporation|flux', 'kgm-2', 'Blues'] 901 913 elif varn == 'g' or varn == 'QGRAUPEL': 902 914 varvals = ['g', 'grauepl_mixing_ratio', 0., 0.0003, 'graupel|mixing|ratio', \ … … 973 985 varvals = ['pracc', 'precipitation_amount', 0., 100., \ 974 986 'accumulated|precipitation', 'kgm-2', 'BuPu'] 975 elif varn == 'prc' or varn == 'LPLUC' or varn == 'pluc' or varn == 'WRFprc': 987 elif varn == 'prc' or varn == 'LPLUC' or varn == 'pluc' or varn == 'WRFprc' or \ 988 varn == 'RAINCde': 976 989 varvals = ['prc', 'convective_precipitation_flux', 0., 2.e-4, \ 977 990 'convective|precipitation|flux', 'kgm-2s-1', 'Blues'] … … 986 999 varvals = ['pres', 'air_pressure', 0., 103000., 'air|pressure', 'Pa', \ 987 1000 'Blues'] 988 elif varn == 'prls' or varn == 'WRFprls' or varn == 'LPLUL' or varn == 'plul': 1001 elif varn == 'prls' or varn == 'WRFprls' or varn == 'LPLUL' or varn == 'plul' or \ 1002 varn == 'RAINNCde': 989 1003 varvals = ['prls', 'large_scale_precipitation_flux', 0., 2.e-4, \ 990 1004 'large|scale|precipitation|flux', 'kgm-2s-1', 'Blues'] … … 1007 1021 varvals = ['r', 'water_mixing_ratio', 0., 0.03, 'water|mixing|ratio', \ 1008 1022 'kgkg-1', 'BuPu'] 1023 elif varn == 'r2' or varn == 'Q2': 1024 varvals = ['r2', 'water_mixing_ratio_at_2m', 0., 0.03, 'water|mixing|' + \ 1025 'ratio|at|2|m','kgkg-1', 'BuPu'] 1009 1026 elif varn == 'rsds' or varn == 'SWdnSFC' or varn == 'SWdn at surface' or \ 1010 1027 varn == 'SWDOWN': … … 1091 1108 varvals = ['wss', 'air_velocity', 0., 30., 'surface|horizontal|wind|speed', \ 1092 1109 'ms-1', 'Reds'] 1110 # Water budget 1111 # Water budget de-accumulated 1112 elif varn == 'ccond' or varn == 'CCOND' or varn == 'ACCCONDde': 1113 varvals = ['ccond', 'cw_cond', 0., 30., \ 1114 'cloud|water|condensation', 'mm', 'Reds'] 1115 elif varn == 'wbr' or varn == 'ACQVAPORde': 1116 varvals = ['wbr', 'wbr', 0., 30., 'Water|Budget|water|wapor', 'mm', 'Blues'] 1117 elif varn == 'diabh' or varn == 'DIABH' or varn == 'ACDIABHde': 1118 varvals = ['diabh', 'diabh', 0., 30., 'diabatic|heating', 'K', 'Reds'] 1119 elif varn == 'wbpw' or varn == 'WBPW' or varn == 'WBACPWde': 1120 varvals = ['wbpw', 'water_budget_pw', 0., 30., 'Water|Budget|water|content',\ 1121 'mms-1', 'Reds'] 1122 elif varn == 'wbf' or varn == 'WBACF' or varn == 'WBACFde': 1123 varvals = ['wbf', 'water_budget_hfcqv', 0., 30., \ 1124 'Water|Budget|horizontal|convergence|of|water|vapour|(+,|' + \ 1125 'conv.;|-,|div.)', 'mms-1', 'Reds'] 1126 elif varn == 'wbfc' or varn == 'WBFC' or varn == 'WBACFCde': 1127 varvals = ['wbfc', 'water_budget_fc', 0., 30., \ 1128 'Water|Budget|horizontal|convergence|of|cloud|(+,|conv.;|-,|' +\ 1129 'div.)', 'mms-1', 'Reds'] 1130 elif varn == 'wbfp' or varn == 'WBFP' or varn == 'WBACFPde': 1131 varvals = ['wbfp', 'water_budget_cfp', 0., 30., \ 1132 'Water|Budget|horizontal|convergence|of|precipitation|(+,|' + \ 1133 'conv.;|-,|div.)', 'mms-1', 'Reds'] 1134 elif varn == 'wbz' or varn == 'WBZ' or varn == 'WBACZde': 1135 varvals = ['wbz', 'water_budget_z', 0., 30., \ 1136 'Water|Budget|vertical|convergence|of|water|vapour|(+,|conv.' +\ 1137 ';|-,|div.)', 'mms-1', 'Reds'] 1138 elif varn == 'wbc' or varn == 'WBC' or varn == 'WBACCde': 1139 varvals = ['wbc', 'water_budget_c', 0., 30., \ 1140 'Water|Budget|Cloud|water|species','mms-1', 'Reds'] 1141 elif varn == 'wbqvd' or varn == 'WBQVD' or varn == 'WBACQVDde': 1142 varvals = ['wbqvd', 'water_budget_qvd', 0., 30., \ 1143 'Water|Budget|water|vapour|divergence', 'mms-1', 'Reds'] 1144 elif varn == 'wbqvblten' or varn == 'WBQVBLTEN' or varn == 'WBACQVBLTENde': 1145 varvals = ['wbqvblten', 'water_budget_qv_blten', 0., 30., \ 1146 'Water|Budget|QV|tendency|due|to|pbl|parameterization', \ 1147 'kg kg-1 s-1', 'Reds'] 1148 elif varn == 'wbqvcuten' or varn == 'WBQVCUTEN' or varn == 'WBACQVCUTENde': 1149 varvals = ['wbqvcuten', 'water_budget_qv_cuten', 0., 30., \ 1150 'Water|Budget|QV|tendency|due|to|cu|parameterization', \ 1151 'kg kg-1 s-1', 'Reds'] 1152 elif varn == 'wbqvshten' or varn == 'WBQVSHTEN' or varn == 'WBACQVSHTENde': 1153 varvals = ['wbqvshten', 'water_budget_qv_shten', 0., 30., \ 1154 'Water|Budget|QV|tendency|due|to|shallow|cu|parameterization', \ 1155 'kg kg-1 s-1', 'Reds'] 1156 elif varn == 'wbpr' or varn == 'WBP' or varn == 'WBACPde': 1157 varvals = ['wbpr', 'water_budget_pr', 0., 30., \ 1158 'Water|Budget|recipitation', 'mms-1', 'Reds'] 1159 elif varn == 'wbpw' or varn == 'WBPW' or varn == 'WBACPWde': 1160 varvals = ['wbpw', 'water_budget_pw', 0., 30., \ 1161 'Water|Budget|water|content', 'mms-1', 'Reds'] 1162 elif varn == 'wbcondt' or varn == 'WBCONDT' or varn == 'WBACCONDTde': 1163 varvals = ['wbcondt', 'water_budget_condt', 0., 30., \ 1164 'Water|Budget|condensation|and|deposition', 'mms-1', 'Reds'] 1165 elif varn == 'wbqcm' or varn == 'WBQCM' or varn == 'WBACQCMde': 1166 varvals = ['wbqcm', 'water_budget_qcm', 0., 30., \ 1167 'Water|Budget|hydrometeor|change|and|convergence', 'mms-1', 'Reds'] 1168 elif varn == 'wbsi' or varn == 'WBSI' or varn == 'WBACSIde': 1169 varvals = ['wbsi', 'water_budget_si', 0., 30., \ 1170 'Water|Budget|hydrometeor|sink', 'mms-1', 'Reds'] 1171 elif varn == 'wbso' or varn == 'WBSO' or varn == 'WBACSOde': 1172 varvals = ['wbso', 'water_budget_so', 0., 30., \ 1173 'Water|Budget|hydrometeor|source', 'mms-1', 'Reds'] 1174 # Water Budget accumulated 1175 elif varn == 'ccondac' or varn == 'ACCCOND': 1176 varvals = ['ccondac', 'cw_cond_ac', 0., 30., \ 1177 'accumulated|cloud|water|condensation', 'mm', 'Reds'] 1178 elif varn == 'rac' or varn == 'ACQVAPOR': 1179 varvals = ['rac', 'ac_r', 0., 30., 'accumualted|water|wapor', 'mm', 'Blues'] 1180 elif varn == 'diabhac' or varn == 'ACDIABH': 1181 varvals = ['diabhac', 'diabh_ac', 0., 30., 'accumualted|diabatic|heating', \ 1182 'K', 'Reds'] 1183 elif varn == 'wbpwac' or varn == 'WBACPW': 1184 varvals = ['wbpwac', 'water_budget_pw_ac', 0., 30., \ 1185 'Water|Budget|accumulated|water|content', 'mm', 'Reds'] 1186 elif varn == 'wbfac' or varn == 'WBACF': 1187 varvals = ['wbfac', 'water_budget_hfcqv_ac', 0., 30., \ 1188 'Water|Budget|accumulated|horizontal|convergence|of|water|vapour|(+,|' + \ 1189 'conv.;|-,|div.)', 'mm', 'Reds'] 1190 elif varn == 'wbfcac' or varn == 'WBACFC': 1191 varvals = ['wbfcac', 'water_budget_fc_ac', 0., 30., \ 1192 'Water|Budget|accumulated|horizontal|convergence|of|cloud|(+,|conv.;|-,|' +\ 1193 'div.)', 'mm', 'Reds'] 1194 elif varn == 'wbfpac' or varn == 'WBACFP': 1195 varvals = ['wbfpac', 'water_budget_cfp_ac', 0., 30., \ 1196 'Water|Budget|accumulated|horizontal|convergence|of|precipitation|(+,|' + \ 1197 'conv.;|-,|div.)', 'mm', 'Reds'] 1198 elif varn == 'wbzac' or varn == 'WBACZ': 1199 varvals = ['wbzac', 'water_budget_z_ac', 0., 30., \ 1200 'Water|Budget|accumulated|vertical|convergence|of|water|vapour|(+,|conv.' +\ 1201 ';|-,|div.)', 'mm', 'Reds'] 1202 elif varn == 'wbcac' or varn == 'WBACC': 1203 varvals = ['wbcac', 'water_budget_c_ac', 0., 30., \ 1204 'Water|Budget|accumulated|Cloud|water|species','mm', 'Reds'] 1205 elif varn == 'wbqvdac' or varn == 'WBACQVD': 1206 varvals = ['wbqvdac', 'water_budget_qvd_ac', 0., 30., \ 1207 'Water|Budget|accumulated|water|vapour|divergence', 'mm', 'Reds'] 1208 elif varn == 'wbqvbltenac' or varn == 'WBACQVBLTEN': 1209 varvals = ['wbqvbltenac', 'water_budget_qv_blten_ac', 0., 30., \ 1210 'Water|Budget|accumulated|QV|tendency|due|to|pbl|parameterization', \ 1211 'kg kg-1 s-1', 'Reds'] 1212 elif varn == 'wbqvcutenac' or varn == 'WBACQVCUTEN': 1213 varvals = ['wbqvcutenac', 'water_budget_qv_cuten_ac', 0., 30., \ 1214 'Water|Budget|accumulated|QV|tendency|due|to|cu|parameterization', \ 1215 'kg kg-1 s-1', 'Reds'] 1216 elif varn == 'wbqvshtenac' or varn == 'WBACQVSHTEN': 1217 varvals = ['wbqvshtenac', 'water_budget_qv_shten_ac', 0., 30., \ 1218 'Water|Budget|accumulated|QV|tendency|due|to|shallow|cu|parameterization', \ 1219 'kg kg-1 s-1', 'Reds'] 1220 elif varn == 'wbprac' or varn == 'WBACP': 1221 varvals = ['wbprac', 'water_budget_pr_ac', 0., 30., \ 1222 'Water|Budget|accumulated|precipitation', 'mm', 'Reds'] 1223 elif varn == 'wbpwac' or varn == 'WBACPW': 1224 varvals = ['wbpwac', 'water_budget_pw_ac', 0., 30., \ 1225 'Water|Budget|accumulated|water|content', 'mm', 'Reds'] 1226 elif varn == 'wbcondtac' or varn == 'WBACCONDT': 1227 varvals = ['wbcondtac', 'water_budget_condt_ac', 0., 30., \ 1228 'Water|Budget|accumulated|condensation|and|deposition', 'mm', 'Reds'] 1229 elif varn == 'wbqcmac' or varn == 'WBACQCM': 1230 varvals = ['wbqcmac', 'water_budget_qcm_ac', 0., 30., \ 1231 'Water|Budget|accumulated|hydrometeor|change|and|convergence', 'mm', 'Reds'] 1232 elif varn == 'wbsiac' or varn == 'WBACSI': 1233 varvals = ['wbsiac', 'water_budget_si_ac', 0., 30., \ 1234 'Water|Budget|accumulated|hydrometeor|sink', 'mm', 'Reds'] 1235 elif varn == 'wbsoac' or varn == 'WBACSO': 1236 varvals = ['wbsoac', 'water_budget_so_ac', 0., 30., \ 1237 'Water|Budget|accumulated|hydrometeor|source', 'mm', 'Reds'] 1238 1093 1239 elif varn == 'xtime' or varn == 'XTIME': 1094 1240 varvals = ['xtime', 'time', 0., 1.e5, 'time', \ … … 1112 1258 else: 1113 1259 print errormsg 1114 print ' ' + fname + ': variable ' + varn + ' not defined !!!'1260 print ' ' + fname + ": variable '" + varn + "' not defined !!!" 1115 1261 quit(-1) 1116 1262 1117 1263 return varvals 1118 1119 1264 1120 1265 ####### ####### ####### ####### ####### ####### ####### ####### ####### #######
Note: See TracChangeset
for help on using the changeset viewer.