Changeset 13893 for NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/plot_station_asf_OCE.py
- Timestamp:
- 2020-11-26T19:03:34+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/plot_station_asf_OCE.py
r13723 r13893 28 28 rDPI=100. 29 29 30 l_color = [ '0.85' , '#ffed00' , '#008ab8' , '0.4' ] ; # colors to differentiate algos on the plot 31 l_width = [ 4 , 3 , 2 , 1 ] ; # line-width to differentiate algos on the plot 32 l_style = [ '-' , '-' , '-' , '--' ] ; # line-style 30 #l_color = [ '0.85' , '#ffed00' , '#008ab8' , '0.4' ] ; # colors to differentiate algos on the plot 31 #l_width = [ 4 , 3 , 2 , 1 ] ; # line-width to differentiate algos on the plot 32 #l_style = [ '-' , '-' , '-' , '--' ] ; # line-style 33 34 #ffed00: yellow ON 35 #E8A727: ornage 36 37 l_color = [ '0.3' , '#E8A727', '0.1' , '#008ab8' ] ; # colors to differentiate algos on the plot 38 l_width = [ 2 , 2 , 1.5 , 2 ] ; # line-width to differentiate algos on the plot 39 l_style = [ '-' , '-' , '--' , '-' ] ; # line-style 33 40 34 41 … … 43 50 L_PREC = [ 3 , 3 , 0 , 0 , 0 , 0 , 2 , 3 ] 44 51 L_ANOM = [ False , False , True , True , True , True , True , False ] 52 L_MAXT = [ 10000. , 10000., 10000. , 10000. , 10000. , 10000. , 10000. , 1.5 ] 53 L_MINT = [ 0.001 , 0.001 , -10000. , -10000. , -10000. , -10000. ,-10000. , -10000. ] 45 54 46 55 # About STATION_ASF output files to read: … … 220 229 # 221 230 id_in = Dataset(cf_in[ja]) 222 xF[:,ja] = id_in.variables[L_VNEM[jv]][:,1,1] # only the center point of the 3x3 spatial domain!231 xF[:,ja] = id_in.variables[L_VNEM[jv]][:,1,1] ; # only the center point of the 3x3 spatial domain! 223 232 if ja == 0: cvar_lnm = id_in.variables[L_VNEM[jv]].long_name 224 233 id_in.close() 234 # 235 id_toolarge, = nmp.where( xF[:,ja] > L_MAXT[jv] ) # 236 xF[id_toolarge,ja] = L_MAXT[jv] 237 id_toosmall, = nmp.where( xF[:,ja] < L_MINT[jv] ) ; print("id_toosmall =", id_toosmall) 238 xF[id_toosmall,ja] = L_MINT[jv] 225 239 226 240 idx_okay = nmp.where( nmp.abs(xF) < 1.e+10 ) … … 236 250 fplot = nmp.ma.masked_where( xF[:,ja]==0., xF[:,ja] ) 237 251 plt.plot(vtime, fplot, '-', color=l_color[ja], \ 238 linestyle=l_style[ja], linewidth=l_width[ja], label=list_exp[ja], zorder=10+ja)252 linestyle=l_style[ja], linewidth=l_width[ja], label=list_exp[ja], alpha=0.6 ) #zorder=10+ja) 239 253 240 254 fmin, fmax = round_bounds( nmp.min(xF[idx_okay]) , nmp.max(xF[idx_okay]), base=L_BASE[jv], prec=L_PREC[jv]) … … 286 300 fplot = nmp.ma.masked_where( xF[:,ja]==0., xF[:,ja] ) 287 301 plt.plot(vtime, fplot, '-', color=l_color[ja], \ 288 linewidth=l_width[ja], label=list_exp[ja], zorder=10+ja)302 linewidth=l_width[ja], label=list_exp[ja], alpha=0.6) #, zorder=10+ja) 289 303 290 304 ax1.set_ylim(-yrng,yrng) ; ax1.set_xlim(vtime[0],vtime[Nt-1])
Note: See TracChangeset
for help on using the changeset viewer.