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/time_serie_ER_rossby_df_complet.m

    r56 r59  
    5252% ========== 
    5353% 
     54% $Id$ 
     55% 
     56% - fplod 2009-02-11T16:27:34Z aedon.locean-ipsl.upmc.fr (Darwin) 
     57% 
     58%   * add try/catch on opening file for reading 
    5459% 
    5560% - fplod 2009-02-10T14:28:00Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    97102 
    98103fullfilename=[IRCAAM_ID,'eof_rossby_jjas_2006_',df,'.mat']; 
    99 status=load(fullfilename,'C','olr'); 
     104try 
     105 status=load(fullfilename,'C','olr'); 
     106catch 
     107 error('eee : File %s not found\n', fullfilename); 
     108end 
     109 
    100110clear fullfilename; 
    101111C=status.C; 
Note: See TracChangeset for help on using the changeset viewer.