Changeset 4335 for BOL/Multi_atlas


Ignore:
Timestamp:
Nov 9, 2022, 9:57:01 PM (2 years ago)
Author:
musat
Message:

Autre oubli
Ionela

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/Multi_atlas/Utils/lmdz_SE0.py

    r4308 r4335  
    3232# Saisons gérées et leur traduction CDO
    3333#########################################################################################
    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" }
     34seasons={ '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" }
    3735
    3836
     
    290288    if grid != '' :
    291289        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) ;
    293291            return None
    294292        rds=regrid(seas,fds(grid_remapfiles[grid],period='fx'))
     
    321319   shortvarname = longvarname = variable
    322320   if variable=='tas':
    323         longvarname  = '2M Temperature'
    324         shortvarname = '2M Temp.'
     321        longvarname  = '2M Temperature'
     322        shortvarname = '2M Temp.'
    325323   if variable=='tasmax':
    326         longvarname  = '2M daymax Temperature'
    327         shortvarname = '2M daymx Temp.'
     324        longvarname  = '2M daymax Temperature'
     325        shortvarname = '2M daymx Temp.'
    328326   if variable=='tasmin':
    329         longvarname  = '2M daymin Temperature'
    330         shortvarname = '2M daymn Temp.'
     327        longvarname  = '2M daymin Temperature'
     328        shortvarname = '2M daymn Temp.'
    331329   if variable=='DRT':
    332         longvarname  = '2M diurnal amplitude temperature'
    333         shortvarname = '2M dtr '
     330        longvarname  = '2M diurnal amplitude temperature'
     331        shortvarname = '2M dtr '
    334332   if variable=='pr':
    335333        longvarname  = 'Precipitation'
     
    496494   #
    497495   if short:
    498         return shortvarname
     496        return shortvarname
    499497   else:
    500         return longvarname
    501 
    502 
    503 
     498        return longvarname
     499
     500
     501
Note: See TracChangeset for help on using the changeset viewer.