Changeset 585 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jul 8, 2015, 1:09:39 PM (10 years ago)
Author:
lfita
Message:

Adding None projection in `draw_points'
Adding wrong projection name in `draw_points'

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r562 r585  
    23902390        varextra = np.squeeze(objextra[tuple(slicevar)])
    23912391
    2392     drw.plot_points(xptval, yptval, lonv, latv, varextra, varextrav, gtit, mapvalues,\
     2392    if mapvalues == 'None':
     2393        mapV = None
     2394    else:
     2395        mapV = mapvalues
     2396
     2397    drw.plot_points(xptval, yptval, lonv, latv, varextra, varextrav, gtit, mapV,     \
    23932398      kindfigure, pointcolor, ptlabels, locleg, figureko, figuren)
    23942399
  • trunk/tools/drawing_tools.py

    r563 r585  
    26432643            m = Basemap(projection=map_proj, lat_0=lat2, lon_0=lon2, llcrnrlon=nlon, \
    26442644              llcrnrlat=nlat, urcrnrlon=xlon, urcrnrlat= xlat, resolution=map_res)
     2645        else:
     2646            print errormsg
     2647            print '  ' + fname + ": map projecion '" + map_proj + "' not ready!!"
     2648            print '    available: cyl, lcc'
     2649            quit(-1)
    26452650
    26462651#        lons, lats = np.meshgrid(vlon, vlat)
     
    26562661        parallels = pretty_int(nlat,xlat,5)
    26572662        m.drawparallels(parallels,labels=[False,True,True,False])
    2658 #    else:
     2663    else:
     2664        x = vlon
     2665        y = vlat
    26592666#        plt.xlim(0,dx-1)
    26602667#        plt.ylim(0,dy-1)
Note: See TracChangeset for help on using the changeset viewer.