Changeset 27092


Ignore:
Timestamp:
06/22/22 16:10:14 (3 years ago)
Author:
Eric.Larour
Message:

CHG: diverse mods.

Location:
issm/branches/trunk-larour-SLPS2022/src/m/contrib/larour
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/branches/trunk-larour-SLPS2022/src/m/contrib/larour/ismip6.m

    r27069 r27092  
    2222                deltathicknesshal = {};   %placeholder for delta thicknesses halosteric origins
    2323                deltathicknessbar = {};   %placeholder for delta thicknesses halosteric origins
     24                vdeltathicknessbar = {};   %placeholder for delta thicknesses halosteric origins on vertices
    2425                thicknesscorrection={}; 
    2526                icemask        = {};   %placeholder for ice masks
  • TabularUnified issm/branches/trunk-larour-SLPS2022/src/m/contrib/larour/oceanmip.m

    r27069 r27092  
    258258                end
    259259        end %}}}
     260        function arrays= bottompressures(self,varargin) % {{{
     261                options=pairoptions(varargin{:});
     262                units=getfieldvalue(options,'units','m');
     263               
     264                arrays=cell(self.n,1);
     265                for i=1:self.n,
     266                        pbo=self.mesh_pbo{i};
     267                        if strcmpi(units,'m'),
     268                                pbo=pbo*1e-3;
     269                        end
     270                        time=self.time{i};
     271                        array=[pbo;time'];
     272                        arrays{i}=array;
     273                end
     274        end %}}}
    260275        function arrays= dzoss(self,varargin) % {{{
    261276                options=pairoptions(varargin{:});
     
    274289                end
    275290        end     %}}}
     291        function arrays= zoss(self,varargin) % {{{
     292               
     293                options=pairoptions(varargin{:});
     294                units=getfieldvalue(options,'units','m');
     295               
     296                arrays=cell(self.n,1);
     297                for i=1:self.n,
     298                        zos=self.mesh_zos{i};
     299                        if strcmpi(units,'m'),
     300                                zos=zos*1e-3;
     301                        end
     302                        time=self.time{i};
     303                        array=[zos;time'];
     304                        arrays{i}=array;
     305                end
     306        end     %}}}
    276307        function arrays= dzostogass(self,varargin) % {{{
    277308                options=pairoptions(varargin{:});
     
    287318                        time=self.time{i};time=time(1:end-1);
    288319                        array=[dzostoga';time'];
     320                        arrays{i}=array;
     321                end
     322        end     %}}}
     323        function arrays= zostogas(self,varargin) % {{{
     324                options=pairoptions(varargin{:});
     325                units=getfieldvalue(options,'units','m');
     326
     327                arrays=cell(self.n,1);
     328                for i=1:self.n,
     329                        z=self.zostoga{i};
     330                        if strcmpi(units,'m'),
     331                                z=z*1e-3;
     332                        end
     333                        time=self.time{i};
     334                        array=[z';time'];
    289335                        arrays{i}=array;
    290336                end
Note: See TracChangeset for help on using the changeset viewer.