Changeset 7304
- Timestamp:
- 02/03/11 16:16:06 (14 years ago)
- Location:
- issm/trunk/src/m/utils
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Basins/basinzoom.m
r7245 r7304 1 function varargout=basinzoom( options)1 function varargout=basinzoom(varargin) 2 2 %ANTZOOM - zoom on a basin in Antarctica or Greenland. 3 3 % … … 9 9 10 10 %recover some options, and set defaults 11 12 %is varargin an options database already? 13 if nargin==0, 14 options=pairoptions(varargin{:}); 15 elseif (isa(varargin{1},'plotoptions') | isa(varargin{1},'pairoptions')), 16 %do nothing to the varargin: 17 options=varargin{1}; 18 else 19 %process varargin for options: 20 options=pairoptions(varargin{:}); 21 end 11 22 12 23 unitmultiplier=getfieldvalue(options,'unit',NaN); -
issm/trunk/src/m/utils/Geometry/FlagElements.m
r6818 r7304 32 32 %does the region domain outline exist or do we have to look for xlim,ylim in basinzoom? 33 33 if ~exist(region,'file'), 34 [xlim,ylim]=basinzoom( region);34 [xlim,ylim]=basinzoom('basin',region); 35 35 flag_nodes=double(md.x<xlim(2) & md.x>xlim(1) & md.y<ylim(2) & md.y>ylim(1)); 36 36 flag=prod(flag_nodes(md.elements),2); -
issm/trunk/src/m/utils/Kml/kml2exp.m
r7148 r7304 11 11 %First, read polygon kml file. 12 12 structure=kml_shapefile(input); 13 14 %create exp file: 15 domain=struct(); 16 for i=1:length(structure), 13 17 14 %create exp file: 15 domain.name=structure.name; 16 domain.density=1; 17 domain.x=structure.X; 18 domain.y=structure.Y; 18 if isfield(structure,'name'), 19 domain(end+1).name=structure(i).name; 20 else 21 domain(end+1).name='NaN'; 22 end 23 24 domain(end).density=1; 25 domain(end).x=structure(i).X; 26 domain(end).y=structure(i).Y; 27 end 28 domain=domain(2:end); 19 29 expwrite(domain,output);
Note:
See TracChangeset
for help on using the changeset viewer.