Ignore:
Timestamp:
02/18/09 17:42:07 (15 years ago)
Author:
pinsard
Message:

add some try/catch on opening file for reading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mode_sahelien/composite_olr_phase_num.m

    r44 r59  
    5454% improve description 
    5555% 
    56 % improve file pb 
     56% improve file pb especialy ncload 
    5757% 
    5858% use return function 
     
    6868% 
    6969% $Id$ 
     70% 
     71% - fplod 2009-02-11T16:27:34Z aedon.locean-ipsl.upmc.fr (Darwin) 
     72% 
     73%   * add try/catch on opening file for reading 
    7074% 
    7175% - fplod 2009-01-28T10:38:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    97101fullfilename=[IRCAAM_ID,'olr.day.mean.nc']; 
    98102ncload(fullfilename); 
     103 
    99104clear fullfilename; 
    100105 
     
    245250 
    246251fullfilename=[IRCAAM_OD,'phase',int2str(phase_num),'.txt']; 
    247 status=load(fullfilename); 
     252try 
     253 status=load(fullfilename); 
     254catch 
     255 error('eee : File %s not found\n', fullfilename); 
     256end 
     257 
    248258clear fullfilename; 
    249259 
Note: See TracChangeset for help on using the changeset viewer.