Changeset 24878


Ignore:
Timestamp:
05/20/20 16:12:13 (5 years ago)
Author:
Eric.Larour
Message:

CHG: some more capabilities.

Location:
issm/trunk-jpl/src/m/contrib/larour
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/contrib/larour/applyqgisstyle.m

    r24858 r24878  
    1313        if strcmpi(type,'mesh'),
    1414                system(['cp /Users/larour/issm-jpl/usr/larour/Qgis/Mesh.qml ' newname]);
     15        elseif strcmpi(type,'line'),
     16                system(['cp /Users/larour/issm-jpl/usr/larour/Qgis/LineStyle.qml ' newname]);
     17        elseif strcmpi(type,'point'),
     18                system(['cp /Users/larour/issm-jpl/usr/larour/Qgis/SummitStyle.qml ' newname]);
    1519        else
    1620                error(['applyqgisstyle error message: ' type ' style not supported yet']);
  • issm/trunk-jpl/src/m/contrib/larour/glacier_inventory.m

    r24855 r24878  
    2929                function self = glacier_inventory(varargin) % {{{
    3030
    31                         self=setdefaultparameters(self);
    32 
    3331                        options=pairoptions(varargin{:});
    3432
     
    5755                                CenLon=zeros(length(contours),1);
    5856                                CenLat=zeros(length(contours),1);
     57                                Connectivity=zeros(length(contours),1);
    5958                                for j=1:length(contours),
    6059                                        O1Region(j)=str2num(contours(j).O1Region);
     
    6362                                        CenLon(j)=contours(j).CenLon;
    6463                                        CenLat(j)=contours(j).CenLat;
     64                                        Connectivity(j)=contours(j).Connect;
    6565                                end
    6666                                self.regions(i).Area=Area;
     
    6969                                self.regions(i).CenLat=CenLat;
    7070                                self.regions(i).CenLon=CenLon;
     71                                self.regions(i).Connectivity=Connectivity;
    7172                                self.regions(i).lids=[1:length(contours)]';
    7273                                self.regions(i).gids=self.regions(i).lids+counter;
     
    9192                        subsetregions=getfieldvalue(options,'regions',1:length(self.boxes));
    9293                        errornotfound=getfieldvalue(options,'errornotfound',1);
     94                        plotr=getfieldvalue(options,'plot',0);
    9395
    9496                        %The way we run this is through the O2 zones defined in boxes. We go through
     
    366368                function name=ridtoname(self,rid) % {{{
    367369                       
    368                         fullname=self.region(rid).name;
     370                        fullname=self.regions(rid).name;
    369371                        name=fullname(10:end);
    370372
Note: See TracChangeset for help on using the changeset viewer.