Changeset 422 in lmdz_wrf for trunk


Ignore:
Timestamp:
May 20, 2015, 2:51:48 PM (10 years ago)
Author:
lfita
Message:

Changing title and dx,dy dimensions on 'plot_Trajectories'

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r396 r422  
    20702070      values=[leglabels]|[lonlatlims]|[title]|[graphk]|[mapkind]
    20712071        [leglabels]: ',' separated list of names for the legend
    2072         [lonlatlims]: limits of the map [lonmin, latmin, lonmax, latmax] or None
    2073         [title]: title of the plot
     2072        [lonlatlims]: ',' list of limits of the map [lonmin, latmin, lonmax, latmax] or None
     2073        [title]: title of the plot ('!' for spaces)
    20742074        [graphk]: kind of the graphic
    20752075        [mapkind]: drawing coastaline ([proj],[res]) or None
     
    20972097        quit()
    20982098
     2099    expectargs = '[leglabels]|[lonlatlims]|[title]|[graphk]|[mapkind]'
     2100 
     2101    drw.check_arguments(fname,len(expectargs.split('|')),values,'|',expectargs)
     2102
    20992103    trjfiles = trjfilens.split(',')
    21002104    leglabels = values.split('|')[0]
    21012105    lonlatlims = values.split('|')[1]
    2102     title = values.split('|')[2]
     2106    title = values.split('|')[2].replace('!',' ')
    21032107    graphk = values.split('|')[3]
    21042108    mapkind = values.split('|')[4]
  • trunk/tools/drawing_tools.py

    r399 r422  
    28172817            lats = olat[:,:]
    28182818        else:
    2819             print errormsg
    2820             print '  ' + fname + ': shapes of lon/lat objects', olon.shape,          \
    2821               'not ready!!!'
     2819            dx = olon.shape
     2820            dy = olat.shape
     2821#            print errormsg
     2822#            print '  ' + fname + ': shapes of lon/lat objects', olon.shape,          \
     2823#              'not ready!!!'
    28222824
    28232825        for il in range(Ntraj):
     
    28442846            dy = olon.shape[0]
    28452847        else:
    2846             print errormsg
    2847             print '  ' + fname + ': shapes of lon/lat objects', olon.shape,          \
    2848               'not ready!!!'
     2848            dx = olon.shape
     2849            dy = olat.shape
     2850#            print errormsg
     2851#            print '  ' + fname + ': shapes of lon/lat objects', olon.shape,          \
     2852#              'not ready!!!'
    28492853
    28502854        if lonlatLims is not None:
Note: See TracChangeset for help on using the changeset viewer.