Changeset 2080 in lmdz_wrf


Ignore:
Timestamp:
Aug 11, 2018, 1:00:26 AM (7 years ago)
Author:
lfita
Message:

Adding interface for WRFeta_levels

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r2079 r2080  
    114114# draw_vertical_levels: plotting vertical levels distribution
    115115# draw_WindRose: Function to plot a wind rose (from where the dinw blows)
     116# draw_WRFeta_levels: Function to plot vertical levels from WRF wrfinput_d[nn] file
    116117# movie_2D_shad: creation of a movie with shading
    117118
     
    138139  'draw_topo_geogrid_boxes', 'draw_trajectories', 'draw_vals_trajectories',          \
    139140  'draw_vectors',  'draw_vertical_levels', 'list_graphics', 'draw_WindRose',         \
    140   'movie_2D_shad', 'variable_values']
     141  'draw_WRFeta_levels', 'movie_2D_shad', 'variable_values']
    141142
    142143def draw_2D_shad(ncfile, values, varn, axfig=None, fig=None):
     
    1038310384    locleg, legfontsize = drw.legend_values(legvals,'|')
    1038410385
    10385     plt.plot_draw_WRFeta_levels(allhgtsea, allxhgt, allhgtxhgt, alldhgtsea,          \
    10386       alldhgtxhgt, alletaw, alletau, labs, colors, markers, [locleg, legfontsize],   \
    10387       imgtit, imgkind, close)
     10386    plt.plot_WRFeta_levels(allhgtsea, allxhgt, allhgtxhgt, alldhgtsea, alldhgtxhgt,  \
     10387      alletaw, alletau, labs, colors, markers, [locleg, legfontsize], imgtit,        \
     10388      imgkind, close)
    1038810389
    1038910390    return
     
    1041610417  'draw_lines_time', 'draw_multiWindRose', 'draw_points', 'draw_Taylor',             \
    1041710418  'draw_time_lag', 'draw_topo_geogrid_boxes',                                        \
    10418   'draw_trajectories', 'draw_vals_trajectories', 'variable_values']
     10419  'draw_trajectories', 'draw_vals_trajectories', 'draw_WRFeta_levels',               \
     10420  'variable_values']
    1041910421
    1042010422errormsg='ERROR -- error -- ERROR -- error'
     
    1055310555    elif oper == 'draw_WindRose':
    1055410556        draw_WindRose(opts.ncfile, opts.values, opts.varname)
     10557    elif oper == 'draw_WRFeta_levels':
     10558        draw_WRFeta_levels(opts.ncfile, opts.values)
    1055510559    elif oper == 'movie_2D_shad':
    1055610560        movie_2D_shad(opts.ncfile, opts.values, opts.varname)
  • trunk/tools/drawing_tools.py

    r2079 r2080  
    191191# plot_TimeEnsembles: Function to plot a of an Ensemble of values with a time-axis
    192192# plot_WindRose: Function to plot a wind rose (from where the dinw blows)
     193# plot_WRFeta_levels: Function to plot different sets of WRF eta-levels
    193194# plot_ZQradii: Function to plot following radial averages only at exact grid poins
    194195# transform: Function to transform the values and the axes
     
    1274212743    return
    1274312744
    12744 def plot_draw_WRFeta_levels(ahgtsea, axhgt, ahgtxhgt, adhgtsea, adhgtxhgt, aetaw,    \
     12745def plot_WRFeta_levels(ahgtsea, axhgt, ahgtxhgt, adhgtsea, adhgtxhgt, aetaw,    \
    1274512746     imgtit, labels, cols, marks, legvs, figtitle, kfig, close):
    1274612747    """ Function to plot different sets of WRF eta-levels
Note: See TracChangeset for help on using the changeset viewer.