Changeset 4335 for BOL/Multi_atlas/Utils
- Timestamp:
- Nov 9, 2022, 9:57:01 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/Multi_atlas/Utils/lmdz_SE0.py
r4308 r4335 32 32 # Saisons gérées et leur traduction CDO 33 33 ######################################################################################### 34 #seasons={ 'YEAR':"", 'DJF' : " selmon,1,2,12", 'JJA' : " selmon,6,7,8" , 'JJAS' : "-timavg -selmon,6,7,8,9" } 35 #seasons={ 'YEAR':"", 'DJF' : "-timavg -selmon,1,2,12", 'JJA' : "-timavg -selmon,6,7,8" , 'JJAS' : "-timavg -selmon,6,7,8,9" } 36 seasons={ 'YEAR':"", 'DJF' : "-timavg -selmon,1,2,12", 'JJA' : "-timavg -selmon,6,7,8" , 'JJAS' : "-timavg -selmon,6,7,8,9", 'MAM' : "-timavg -selmon,3,4,5", 'SON' : "-timavg -selmon,9,10,11" } 34 seasons={ 'YEAR':"", 'DJF' : "timavg -selmon,1,2,12", 'JJA' : "timavg -selmon,6,7,8" , 'JJAS' : "timavg -selmon,6,7,8,9", 'MAM' : "timavg -selmon,3,4,5", 'SON' : "timavg -selmon,9,10,11" } 37 35 38 36 … … 290 288 if grid != '' : 291 289 if grid not in grid_remapfiles : 292 print "La grille %s n'est pas connue"%options.grid;290 print("La grille %s n'est pas connue"%options.grid) ; 293 291 return None 294 292 rds=regrid(seas,fds(grid_remapfiles[grid],period='fx')) … … 321 319 shortvarname = longvarname = variable 322 320 if variable=='tas': 323 324 321 longvarname = '2M Temperature' 322 shortvarname = '2M Temp.' 325 323 if variable=='tasmax': 326 327 324 longvarname = '2M daymax Temperature' 325 shortvarname = '2M daymx Temp.' 328 326 if variable=='tasmin': 329 330 327 longvarname = '2M daymin Temperature' 328 shortvarname = '2M daymn Temp.' 331 329 if variable=='DRT': 332 333 330 longvarname = '2M diurnal amplitude temperature' 331 shortvarname = '2M dtr ' 334 332 if variable=='pr': 335 333 longvarname = 'Precipitation' … … 496 494 # 497 495 if short: 498 496 return shortvarname 499 497 else: 500 501 502 503 498 return longvarname 499 500 501
Note: See TracChangeset
for help on using the changeset viewer.