Changeset 971 for trunk/UTIL/PYTHON/mcd/mcd.py
- Timestamp:
- May 24, 2013, 5:03:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/mcd/mcd.py
r944 r971 92 92 93 93 def getdustlabel(self): 94 if self.dust == 1: self.dustlabel = "climatology minimum solar scenario" 95 elif self.dust == 2: self.dustlabel = "climatology average solar scenario" 96 elif self.dust == 3: self.dustlabel = "climatology maximum solar scenario" 94 if self.dust == 1: 95 self.dustlabel = "MY24 minimum solar scenario" 96 if "v5" in self.name: self.dustlabel = "climatology average solar scenario" 97 elif self.dust == 2: 98 self.dustlabel = "MY24 average solar scenario" 99 if "v5" in self.name: self.dustlabel = "climatology minimum solar scenario" 100 elif self.dust == 3: 101 self.dustlabel = "MY24 maximum solar scenario" 102 if "v5" in self.name: self.dustlabel = "climatology maximum solar scenario" 97 103 elif self.dust == 4: self.dustlabel = "dust storm minimum solar scenario" 98 104 elif self.dust == 5: self.dustlabel = "dust storm average solar scenario" … … 224 230 dastuff = whichfield[num] 225 231 if "(K)" in dastuff: self.fmt="%.0f" 232 elif "effective radius" in dastuff: self.fmt="%.2e" 226 233 elif "(Pa)" in dastuff: self.fmt="%.1f" 227 234 elif "(W/m2)" in dastuff: self.fmt="%.0f" … … 249 256 if "v5" in self.name: num = 43 250 257 else: num = 42 251 elif num == "ps_ddv": num = 22252 258 elif num == "h2ovap": 253 259 if "v5" in self.name: num = 42 … … 258 264 elif num == "cp": num = 8 259 265 elif num == "rho_ddv": num = 10 266 elif num == "ps_ddv": num = 22 267 elif num == "p_ddv": num = 21 268 elif num == "t_ddv": num = 23 269 elif num == "w": num = 26 260 270 elif num == "tsurfmx": num = 16 261 271 elif num == "tsurfmn": num = 17 … … 264 274 elif num == "lwup": num = 33 265 275 elif num == "swup": num = 34 276 elif num == "tau": num = 36 277 elif num == "tau_ddv": 278 if "v5" in self.name: num = 37 279 else: num = 38 280 elif num == "qdust": 281 if "v5" in self.name: num = 38 282 else: num = 37 283 elif num == "co2": 284 if "v5" in self.name: num = 57 285 else: num = 45 266 286 elif num == "o3": 267 287 if "v5" in self.name: num = 63 … … 277 297 else: num = 50 278 298 elif num == "co2ice": num = 35 299 elif num == "rdust": 300 if "v5" in self.name: num = 39 301 else: num = 30 # an undefined variable to avoid misleading output 302 elif num == "sdust": 303 if "v5" in self.name: num = 40 304 else: num = 30 # an undefined variable to avoid misleading output 279 305 elif num == "pbl": 280 306 if "v5" in self.name: num = 46 … … 297 323 elif num == "ar": 298 324 if "v5" in self.name: num = 59 325 else: num = 30 # an undefined variable to avoid misleading output 326 elif num == "o2": 327 if "v5" in self.name: num = 62 328 else: num = 30 # an undefined variable to avoid misleading output 329 elif num == "co2col": 330 if "v5" in self.name: num = 67 331 else: num = 30 # an undefined variable to avoid misleading output 332 elif num == "arcol": 333 if "v5" in self.name: num = 69 334 else: num = 30 # an undefined variable to avoid misleading output 335 elif num == "cocol": 336 if "v5" in self.name: num = 70 337 else: num = 30 # an undefined variable to avoid misleading output 338 elif num == "o3col": 339 if "v5" in self.name: num = 73 340 else: num = 30 # an undefined variable to avoid misleading output 341 elif num == "hydro": 342 if "v5" in self.name: num = 64 343 else: num = 30 # an undefined variable to avoid misleading output 344 elif num == "hydro2": 345 if "v5" in self.name: num = 65 346 else: num = 30 # an undefined variable to avoid misleading output 347 elif num == "e": 348 if "v5" in self.name: num = 66 349 else: num = 30 # an undefined variable to avoid misleading output 350 elif num == "ecol": 351 if "v5" in self.name: num = 76 299 352 else: num = 30 # an undefined variable to avoid misleading output 300 353 elif not isinstance(num, np.int): myplot.errormess("field reference not found.") … … 340 393 strloct = str(self.loct)+str(self.locts)+str(self.locte) 341 394 name = str(self.zkey)+strxz+strlon+strlat+str(self.hrkey)+str(self.datekey)+str(self.xdate)+strloct+str(self.dust) 342 if "v5" in self.name: name = "v5 beta_" + name395 if "v5" in self.name: name = "v5_" + name 343 396 return name 344 397
Note: See TracChangeset
for help on using the changeset viewer.