Changeset 21656


Ignore:
Timestamp:
04/04/17 04:53:50 (8 years ago)
Author:
bdef
Message:

NEW: adding hydrology spc to BC plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_BC.py

    r21588 r21656  
    4444                                                         y[np.where(~np.isnan(md.stressbalance.spcvz))],
    4545                                                         marker='o',c='y',s=80,label='vz Dirichlet',linewidth=0)
    46                 ax.scatter(x[np.where(~np.isnan(md.hydrology.spcepl_head))],
    47                                                          y[np.where(~np.isnan(md.hydrology.spcepl_head))],
    48                                                          marker='v',c='r',s=240,label='EPL Head',linewidth=0)
    49                 ax.scatter(x[np.where(~np.isnan(md.hydrology.spcsediment_head))],
    50                                                          y[np.where(~np.isnan(md.hydrology.spcsediment_head))],
    51                                                          marker='^',c='b',s=240,label='IDS head',linewidth=0)
    52                
     46                try:
     47                        ax.scatter(x[np.where(~np.isnan(md.hydrology.spcepl_head))],
     48                                                                 y[np.where(~np.isnan(md.hydrology.spcepl_head))],
     49                                                                 marker='v',c='r',s=240,label='EPL Head',linewidth=0)
     50                        ax.scatter(x[np.where(~np.isnan(md.hydrology.spcsediment_head))],
     51                                                                 y[np.where(~np.isnan(md.hydrology.spcsediment_head))],
     52                                                                 marker='^',c='b',s=240,label='IDS head',linewidth=0)
     53                except AttributeError:
     54                        print ('Not treating Hydrologydc, skipping these boundaries')
    5355                ax.set_xlim(XLims)
    5456                ax.set_ylim(YLims)
Note: See TracChangeset for help on using the changeset viewer.