Changeset 783 for trunk/UTIL


Ignore:
Timestamp:
Sep 13, 2012, 4:10:30 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON added possibility to draw sea and coast through -b sea and -b coast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/myplot.py

    r782 r783  
    809809    elif 'u' in varinfile:  [uchar,vchar] = ['u','v']   #; print "this is GCM file"
    810810    elif 'vitu' in varinfile:  [uchar,vchar] = ['vitu','vitv']   #; print "this is GCM v5 file"
    811      ### you can add choices here !
     811    ### you can add choices here !
    812812    else:                   [uchar,vchar] = ['not found','not found']
    813813    ###
     
    921921            m.drawmeridians(np.r_[-180.:180.:steplon], labels=[0,0,0,1], color=zecolor, linewidth=zelinewidth, fontsize=fontsizemer, latmax=zelatmax)
    922922            m.drawparallels(np.r_[-90.:90.:step], labels=[1,0,0,0], color=zecolor, linewidth=zelinewidth, fontsize=fontsizemer, latmax=zelatmax)
    923     if back: m.warpimage(marsmap(back),scale=0.75)
     923    if back:
     924      if back not in ["coast","sea"]:   m.warpimage(marsmap(back),scale=0.75)
     925      elif back == "coast":             m.drawcoastlines()
     926      elif back == "sea":               m.drawlsmask(land_color='white',ocean_color='aqua')
    924927            #if not back:
    925928            #    if not var:                                        back = "mola"    ## if no var:         draw mola
Note: See TracChangeset for help on using the changeset viewer.