Changeset 27114


Ignore:
Timestamp:
06/27/22 08:35:43 (3 years ago)
Author:
Eric.Larour
Message:

CHG: checks on times if masks are MME.

File:
1 edited

Legend:

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

    r25758 r27114  
    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
    8895                                end
    8996                        else
     
    94101                                for i=1:length(self.ice_levelset),
    95102                                        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
    96110                                end
    97111                        else
Note: See TracChangeset for help on using the changeset viewer.