Changeset 27092
- Timestamp:
- 06/22/22 16:10:14 (3 years ago)
- 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 22 22 deltathicknesshal = {}; %placeholder for delta thicknesses halosteric origins 23 23 deltathicknessbar = {}; %placeholder for delta thicknesses halosteric origins 24 vdeltathicknessbar = {}; %placeholder for delta thicknesses halosteric origins on vertices 24 25 thicknesscorrection={}; 25 26 icemask = {}; %placeholder for ice masks -
TabularUnified issm/branches/trunk-larour-SLPS2022/src/m/contrib/larour/oceanmip.m ¶
r27069 r27092 258 258 end 259 259 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 %}}} 260 275 function arrays= dzoss(self,varargin) % {{{ 261 276 options=pairoptions(varargin{:}); … … 274 289 end 275 290 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 %}}} 276 307 function arrays= dzostogass(self,varargin) % {{{ 277 308 options=pairoptions(varargin{:}); … … 287 318 time=self.time{i};time=time(1:end-1); 288 319 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']; 289 335 arrays{i}=array; 290 336 end
Note:
See TracChangeset
for help on using the changeset viewer.