Changeset 774 in lmdz_wrf for trunk


Ignore:
Timestamp:
May 24, 2016, 5:32:02 PM (9 years ago)
Author:
lfita
Message:

Fixing search of variable in `draw_vertical_levels'
Adding example of `draw_vertical_levels'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r773 r774  
    3030## e.g. # drawing.py -o draw_basins -f routing.py -S 'Y|y|nav_lat|-1,X|x|nav_lon|-1:1@1,rainbow,9:basins,-:cyl,l:ORCDHIEE river-basins:pdf:basins_named' -v nav_lon,nav_lat,trip,basins
    3131## e.g. # drawing.py -o draw_river_desc -f diver_desc.nc -S 'Y|lat|lat|-1,X|lon|lon|-1:red,green:Blues:cyl,l:ORCDHIEE rivers:pdf:0:or_rivers -v Amazon
     32## e.g. # drawing.py -o draw_vertical_levels -f wrfout_d01_2001-11-11_00:00:00 -S 'true:false:wrfout!vertical!levels!(standard!40):png:4' -v WRFz
    3233
    3334main = 'drawing.py'
     
    37223723        zvals = geop[0, :, ijz0[0], ijz0[1]] / 9.8
    37233724    else:
    3724         if not objf.has_variable(varn):
     3725        if not gen.searchInlist(objf.variables, varn):
    37253726            print errormsg
    37263727            print '  ' + fname + ": file '" + ncfile + "' does not have variable '" +\
Note: See TracChangeset for help on using the changeset viewer.