Changeset 287
- Timestamp:
- Sep 8, 2011, 7:14:13 PM (13 years ago)
- Location:
- trunk/MESOSCALE/LMD_MM_MARS
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SIMU/DEF/NEWPHYS_TRACERS/namelist.input
r83 r287 44 44 tiso = 100. 45 45 pd_scalar = T !!! tres IMPORTANT, sinon valeurs negatives 46 diff_6th_opt = 0 46 47 !!! 47 48 !!! OPTIONAL -
trunk/MESOSCALE/LMD_MM_MARS/SIMU/RUN/launch.gnome
r212 r287 34 34 cp $LOADL_STEP_INITDIR/*.exe . 35 35 cp $LOADL_STEP_INITDIR/namelist* . 36 cp $LOADL_STEP_INITDIR/wrfi* . ### executer sur la frontale 37 ### au prealable !!! 36 #cp $LOADL_STEP_INITDIR/wrfi* . ### executer sur la frontale 37 # ### au prealable !!! 38 ln -sf $LOADL_STEP_INITDIR/wrfi* . 38 39 ####################################################################### 39 40 if [[ "${real}" == "0" ]] … … 46 47 ##mv rsl.* ideal/ 47 48 else 48 cp $LOADL_STEP_INITDIR/wrfb* . 49 # cp $LOADL_STEP_INITDIR/wrfb* . 50 ln -sf $LOADL_STEP_INITDIR/wrfb* . 49 51 fi 50 52 ####################################################################### -
trunk/MESOSCALE/LMD_MM_MARS/SRC/POSTPROC/api.F90
r225 r287 69 69 output_name = ' ' 70 70 interp_levels = -99999. 71 process = ' all'71 process = 'list' !!'all' 72 72 73 73 -
trunk/MESOSCALE/LMD_MM_MARS/SRC/PYTHON/myplot.py
r273 r287 487 487 "anomaly": "%.1f",\ 488 488 "W": "%.1f",\ 489 "WMAX_TH": "%.1f",\ 490 "QSURFICE": "%.0f",\ 489 491 } 490 492 if whichvar not in fmtvar: … … 507 509 "VMR_ICE": "Blues",\ 508 510 "W": "jet",\ 511 "WMAX_TH": "spectral",\ 509 512 "anomaly": "RdBu_r",\ 513 "QSURFICE": "hot_r",\ 510 514 } 511 515 #W --> spectral ou jet -
trunk/MESOSCALE/LMD_MM_MARS/SRC/PYTHON/winds.py
r261 r287 31 31 var2=None,\ 32 32 ndiv=10,\ 33 first=1): 33 first=1,\ 34 mult=1.,\ 35 zetitle="fill"): 34 36 35 37 #################################################################################################################### … … 48 50 import numpy as np 49 51 from numpy.core.defchararray import find 50 51 #if save == 'eps': rcParams['backend'] = 'PS'52 52 53 53 ###################### … … 87 87 ### Time loop for plotting device 88 88 found_lct = False 89 nplot = 1 89 90 itime = first 90 nplot = 191 91 error = False 92 92 if itstep is None and numplot > 0: itstep = int(24./numplot) … … 126 126 if var2 == 'HGT': zelevels = np.arange(-10000.,30000.,2000.) 127 127 contour( x, y, what_I_contour, zelevels, colors='k', linewidths = 0.33 ) #colors='w' )# , alpha=0.5) 128 else: 129 errormess("There is an error in reducing field !") 128 130 129 131 #### Shaded plot 130 132 if var: 131 133 what_I_plot, error = reducefield( getfield(nc,var), d4=itime, d3=nvert ) 134 what_I_plot = what_I_plot*mult 132 135 if not error: 133 136 fvar = var … … 136 139 what_I_plot = 100. * ((what_I_plot / smooth(what_I_plot,12)) - 1.) 137 140 fvar = 'anomaly' 141 #if mult != 1: 142 # fvar = str(mult) + "*" + var 138 143 ### 139 144 if typefile in ['mesoapi','meso']: what_I_plot = dumpbdy(what_I_plot,6) … … 143 148 if not tile: 144 149 if not hole: what_I_plot = bounds(what_I_plot,zevmin,zevmax) 145 zelevels = np.linspace(zevmin*(1. + 1.e-7),zevmax*(1. - 1.e-7)) #,num=20) 150 #zelevels = np.linspace(zevmin*(1. + 1.e-7),zevmax*(1. - 1.e-7)) #,num=20) 151 zelevels = np.linspace(zevmin,zevmax) 146 152 contourf( x, y, what_I_plot, zelevels, cmap = palette ) 147 153 else: … … 154 160 extend='neither',spacing='proportional') 155 161 # both min max neither 156 162 else: 163 errormess("There is an error in reducing field !") 164 157 165 ### Vector plot 158 166 if winds: … … 179 187 if addchar: plottitle = plottitle + addchar + "_LT"+str(ltst) 180 188 else: plottitle = plottitle + "_LT"+str(ltst) 189 if mult != 1: plottitle = str(mult) + "*" + plottitle 190 if zetitle != "fill": plottitle = zetitle 181 191 ptitle( plottitle ) 182 192 itime += itstep … … 186 196 ### Save the figure in a file in the data folder or an user-defined folder 187 197 if typefile in ['meso','mesoapi']: prefix = getprefix(nc) 188 elif typefile in ['gcm','gcmex']: 198 elif typefile in ['gcm','gcmex']: prefix = 'LMD_GCM_' 189 199 else: prefix = '' 190 200 ### … … 208 218 print "save mode not supported. using gui instead." 209 219 show() 210 else: 220 else: print "Local time not found" 211 221 212 222 ############### … … 263 273 parser.add_option('-S', '--save', action='store',dest='save', type="string", default="gui", help='save mode (png,eps,svg,pdf or gui)(def=gui)') 264 274 parser.add_option('-a', '--anomaly',action='store_true',dest='anomaly', default=False, help='compute and plot relative anomaly in %') 265 parser.add_option('-w', '--with', action='store',dest='var2', type="string", default=None, help='variable contoured') 266 parser.add_option('--div', action='store',dest='ndiv', type="int", default=10, help='number of divisions in colorbar (def: 10)') 267 parser.add_option('-F', '--first', action='store',dest='first', type="int", default=1, help='first subscript to plot (def: 1)') 275 parser.add_option('-w', '--with', action='store',dest='var2', type="string", default=None, help='variable contoured') 276 parser.add_option('--div', action='store',dest='ndiv', type="int", default=10, help='number of divisions in colorbar (def: 10)') 277 parser.add_option('-F', '--first', action='store',dest='first', type="int", default=1, help='first subscript to plot (def: 1)') 278 parser.add_option('--mult', action='store',dest='mult', type="float", default=1., help='a multiplicative factor to plotted field') 279 parser.add_option('--title', action='store',dest='zetitle', type="string", default="fill",help='customize the whole title') 268 280 #parser.add_option('-V', action='store', dest='comb', type="float", default=None, help='a defined combination of variables') 269 281 (opt,args) = parser.parse_args() … … 340 352 tile=opt.tile,zoom=opt.zoom,display=opt.display,\ 341 353 itstep=opt.itstep,hole=opt.hole,save=opt.save,\ 342 anomaly=opt.anomaly,var2=opt.var2,ndiv=opt.ndiv,first=opt.first) 354 anomaly=opt.anomaly,var2=opt.var2,ndiv=opt.ndiv,first=opt.first,\ 355 mult=opt.mult,zetitle=opt.zetitle) 343 356 print 'Done: '+name 344 357 system("rm -f to_be_erased")
Note: See TracChangeset
for help on using the changeset viewer.