Ignore:
Timestamp:
09/20/20 16:36:58 (4 years ago)
Author:
Eric.Larour
Message:

CHG: diverse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/branches/trunk-larour-SLPS2020/src/m/plot/plot_coastlines.m

    r25325 r25587  
    22
    33%define coastline: {{{
    4 coast=[-83.83 -180 ;...
     4coast=[-90 -180; ...
     5        -83.83 -180 ;...
    56-84.33 -178 ;...
    67-84.5 -174 ;...
     
    614615-83.5 176 ;...
    615616-83.83 180 ;...
     617-85 180 ;...
     618-87 180 ;...
     619-90 180 ;...
    616620NaN NaN ;...
    617621-77.58 166.33 ;...
     
    9866987019.77 -156.05 ;...
    9867987119.95 -155.87 ;...
    9868 20.27 -155.88 ];
     987220.27 -155.88 ;...
     9873NaN NaN];
    98699874
    9870 coastlat=coast(:,1);
    9871 coastlon=coast(:,2);
     9875coastlat=[coast(:,1); coast(:,1)];
     9876coastlon=[coast(:,2); coast(:,2)-360];
    98729877
    98739878%}}}
     
    99029907                p=polyshape(coastlon,coastlat);
    99039908                plot(p,'FaceColor','w','FaceAlpha',1);
     9909                if strcmpi(getfieldvalue(options,'coordcent','atlantic'),'pacific'),
     9910                        xlim(getfieldvalue(options,'xlim',[-360 0]));
     9911                else
     9912                        xlim(getfieldvalue(options,'xlim',[-180 180]));
     9913                end
    99049914                %p=plot(coastlon,coastlat,'k-');
    99059915        end
Note: See TracChangeset for help on using the changeset viewer.