Changeset 317 for trunk/MESOSCALE
- Timestamp:
- Oct 11, 2011, 4:17:58 PM (13 years ago)
- Location:
- trunk/MESOSCALE/LMD_MM_MARS/SRC/PYTHON
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SRC/PYTHON/myplot.py
r310 r317 21 21 def whatkindfile (nc): 22 22 if 'controle' in nc.variables: typefile = 'gcm' 23 elif 'phisinit' in nc.variables: typefile = 'gcm ex'23 elif 'phisinit' in nc.variables: typefile = 'gcm' 24 24 elif 'vert' in nc.variables: typefile = 'mesoapi' 25 25 elif 'U' in nc.variables: typefile = 'meso' … … 152 152 if zetime is not None \ 153 153 and 'vert' not in nc.variables: 154 #### strangely enough this does not work for api or ncrcat results!154 #### strangely enough this does not work for api or ncrcat results! 155 155 zetimestart = getattr(nc, 'START_DATE') 156 156 zeday = int(zetime[8]+zetime[9]) - int(zetimestart[8]+zetimestart[9]) … … 254 254 255 255 def getcoorddef ( nc ): 256 import numpy as np 256 257 ## getcoord2d for predefined types 257 258 typefile = whatkindfile(nc) … … 260 261 lon2d = dumpbdy(lon2d,6) 261 262 lat2d = dumpbdy(lat2d,6) 262 elif typefile in ['gcm' ,'gcmex']:263 elif typefile in ['gcm']: 263 264 [lon2d,lat2d] = getcoord2d(nc,nlat="latitude",nlon="longitude",is1d=True) 264 265 elif typefile in ['geo']: … … 495 496 "Um": "%.0f",\ 496 497 "ALBBARE": "%.2f",\ 498 "TAU": "%.1f",\ 497 499 } 498 500 if whichvar not in fmtvar: … … 520 522 "QSURFICE": "hot_r",\ 521 523 "ALBBARE": "spectral",\ 524 "TAU": "YlOrBr_r",\ 522 525 } 523 526 #W --> spectral ou jet -
trunk/MESOSCALE/LMD_MM_MARS/SRC/PYTHON/winds.py
r295 r317 196 196 ### Save the figure in a file in the data folder or an user-defined folder 197 197 if typefile in ['meso','mesoapi']: prefix = getprefix(nc) 198 elif typefile in ['gcm' ,'gcmex']:prefix = 'LMD_GCM_'198 elif typefile in ['gcm']: prefix = 'LMD_GCM_' 199 199 else: prefix = '' 200 200 ###
Note: See TracChangeset
for help on using the changeset viewer.