Ignore:
Timestamp:
12/13/06 08:47:14 (18 years ago)
Author:
smasson
Message:

minor bugfixs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro

    r198 r199  
    261261        return, report('time units does not start with seconds/hours/days/months/years') 
    262262      ENDIF 
    263       IF stregex(value, '[^ ]* since ([0-9]){4}-([0-9]){2}-([0-9]){2}.*', /boolean) EQ 0 THEN BEGIN 
    264         ncdf_close, cdfid 
    265         return, report('attribut units of time has not the good format: [^ ]* since ([0-9]){4}-([0-9]){2}-([0-9]){2}.*') 
     263      IF stregex(value, '[^ ]* since ([0-9]){1,4}-([0-9]){1,2}-([0-9]){1,2}.*', /boolean) EQ 0 THEN BEGIN 
     264        ncdf_close, cdfid 
     265        return, report('attribut units of time has not the good format: [^ ]* since ([0-9]){1,4}-([0-9]){1,2}-([0-9]){1,2}.*') 
    266266      ENDIF 
    267267      depart = str_sep(mots[2], '-') 
Note: See TracChangeset for help on using the changeset viewer.