Changeset 27135


Ignore:
Timestamp:
07/01/22 17:31:26 (3 years ago)
Author:
Eric.Larour
Message:

CHG: fixed issues with timeseries!

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

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/branches/trunk-larour-SLPS2022/src/m/classes/mask.m

    r27114 r27135  
    8686                                for i=1:length(self.ocean_levelset),
    8787                                        md = checkfield(md,'field',self.ocean_levelset{i},'NaN',0,'Inf',1,'timeserieslength',1,'Inf',1);
    88                                         %check time stamps: they should be in seconds
    89                                         h=self.ocean_levelset{i};
    90                                         times=h(end,:);
    91                                         avgtime=mean(times);
    92                                         if(avgtime<10000)
    93                                                 error('mask checkconsistency error messages: time tags for ocean_levelset should be in seconds!');
    94                                         end
    9588                                end
    9689                        else
     
    10194                                for i=1:length(self.ice_levelset),
    10295                                        md = checkfield(md,'field',self.ice_levelset{i},'NaN',0,'Inf',1,'timeserieslength',1,'Inf',1);
    103                                         %check time stamps: they should be in seconds
    104                                         h=self.ice_levelset{i};
    105                                         times=h(end,:);
    106                                         avgtime=mean(times);
    107                                         if(avgtime<10000)
    108                                                 error('mask checkconsistency error messages: time tags for ice_levelset should be in seconds!');
    109                                         end
    11096                                end
    11197                        else
     
    120106
    121107                        if isa(self.ocean_levelset,'cell'),
    122                                 WriteData(fid,prefix,'object',self,'fieldname','ocean_levelset','name','md.mask.ocean_levelset','format','MatArray','timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     108                                WriteData(fid,prefix,'object',self,'fieldname','ocean_levelset','name','md.mask.ocean_levelset','format','MatArray','timeseries',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
    123109                        else
    124                                 WriteData(fid,prefix,'object',self,'fieldname','ocean_levelset','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     110                                WriteData(fid,prefix,'object',self,'fieldname','ocean_levelset','format','DoubleMat','mattype',1,'timeseries',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
    125111                        end
    126112
    127113                        if isa(self.ice_levelset,'cell'),
    128                                 WriteData(fid,prefix,'object',self,'fieldname','ice_levelset','name','md.mask.ice_levelset','format','MatArray','timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     114                                WriteData(fid,prefix,'object',self,'fieldname','ice_levelset','name','md.mask.ice_levelset','format','MatArray','timeseries',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
    129115                        else
    130                                 WriteData(fid,prefix,'object',self,'fieldname','ice_levelset','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     116                                WriteData(fid,prefix,'object',self,'fieldname','ice_levelset','format','DoubleMat','mattype',1,'timeseries',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
    131117                        end
    132118                end % }}}
  • TabularUnified issm/branches/trunk-larour-SLPS2022/src/m/classes/mmemasstransport.m

    r27103 r27135  
    5757                        md = checkfield(md,'fieldname','mmemasstransport.requested_outputs','stringrow',1);
    5858
    59                         %check time stamps: they should be in seconds
    60                         for i=1:nt,
    61                                 h=self.thickness{i};
    62                                 times=h(end,:);
    63                                 avgtime=mean(times);
    64                                 if(avgtime<10000)
    65                                         error('mmemasstransport checkconsistency error messages: time tags for thicknesses should be in seconds!');
    66                                 end
    67                         end
    6859                end % }}}
    6960                function disp(self) % {{{
     
    8172                        WriteData(fid,prefix,'object',self,'fieldname','ids','format','DoubleMat','mattype',3);
    8273                        WriteData(fid,prefix,'object',self,'fieldname','partition','format','DoubleMat','mattype',1);
    83                         WriteData(fid,prefix,'object',self,'fieldname','thickness','format','MatArray','timeseries',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     74                        WriteData(fid,prefix,'object',self,'fieldname','thickness','format','MatArray','timeseries',1,'timeserieslength',md.mesh.numberofelements+1,'yts',md.constants.yts);
    8475
    8576                        %process requested outputs
Note: See TracChangeset for help on using the changeset viewer.