Changeset 25059


Ignore:
Timestamp:
06/18/20 00:04:45 (5 years ago)
Author:
Eric.Larour
Message:

CHG: allows for shapefiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/modules/ExpToLevelSet.m

    r20875 r25059  
    1818end
    1919
     20if ischar(contourname),
     21        [path,name,ext]=fileparts(contourname);
     22        if strcmpi(ext,'.shp'),
     23                %read contour from shapefile
     24                contourname=shpread(contourname);
     25        end
     26end
     27
    2028% Call mex module
    2129distance = ExpToLevelSet_matlab(x,y,contourname);
Note: See TracChangeset for help on using the changeset viewer.