Changeset 1250 in lmdz_wrf


Ignore:
Timestamp:
Oct 31, 2016, 9:13:47 PM (8 years ago)
Author:
lfita
Message:

Adding `close' to 'draw_topo_geogrid'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r1241 r1250  
    17611761            * 'h', high
    17621762            * 'f', full
     1763        close: Whether figure should be finished or not
    17631764    """
    17641765    fname = 'draw_topo_geogrid'
     
    17691770        quit()
    17701771
    1771     expectargs = '[minTopo],[maxTopo]:[lonlatL]:[title]:[graphic_kind]:[mapvalues]'
     1772    expectargs= '[minTopo],[maxTopo]:[lonlatL]:[title]:[graphic_kind]:[mapvalues]:'+ \
     1773      '[close]'
    17721774 
    17731775    drw.check_arguments(fname,values,expectargs,':')
     
    17911793    kindfig = values.split(':')[3]
    17921794    mapvalues = values.split(':')[4]
     1795    close = gen.Str_Bool(values.split(':')[5])
    17931796
    17941797    if not os.path.isfile(ncfile):
     
    18061809
    18071810    drw.plot_topo_geogrid(topography, objlon, objlat, mintopo, maxtopo, lonlatL,     \
    1808       grtit, kindfig, mapvalues, True)
     1811      grtit, kindfig, mapvalues, close)
    18091812
    18101813    objdomf.close()
Note: See TracChangeset for help on using the changeset viewer.