Changeset 495 for trunk/SRC/ToBeReviewed/CALENDRIER
- Timestamp:
- 04/17/14 10:49:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/CALENDRIER/def_month.pro
r232 r495 3 3 ; @file_comments 4 4 ; 5 ;6 5 ; @categories 7 ;8 6 ; 9 7 ; @param TIMAVE 10 8 ; 11 ;12 9 ; @param DATE 13 ;14 10 ; 15 11 ; @returns 16 12 ; 17 ;18 13 ; @uses 19 ;20 14 ; 21 15 ; @restrictions 22 16 ; 23 ;24 17 ; @examples 25 18 ; 26 ;27 19 ; @history 28 ;29 20 ; 30 21 ; @version … … 37 28 ; translate month number in string 38 29 ; 39 ;40 30 compile_opt idl2, strictarrsubs 41 31 ; 42 32 IF strpos(date, '_') GT -1 THEN date = strmid(date, 0, strpos(date, '_')) 43 CASE strmid(timave, 0, 2) OF 33 CASE strmid(timave, 0, 2) OF 44 34 '1m': BEGIN 45 CASE strmid(date, strlen(date)-2, 2) OF 35 CASE strmid(date, strlen(date)-2, 2) OF 46 36 '01': mn = 'January' 47 37 '02': mn = 'February' … … 57 47 '12': mn = 'December' 58 48 ELSE: mn = '???' 59 ENDCASE 60 END 49 ENDCASE 50 END 61 51 '3m': BEGIN 62 CASE strmid(date, strlen(date)-2, 2) OF 52 CASE strmid(date, strlen(date)-2, 2) OF 63 53 '01': mn = 'DJF' 64 54 '02': mn = 'MMA' … … 66 56 '04': mn = 'SON' 67 57 ELSE: mn = '???' 68 ENDCASE 69 END 58 ENDCASE 59 END 70 60 ELSE: 71 ENDCASE 61 ENDCASE 72 62 73 63 return, mn 74 END 64 END
Note: See TracChangeset
for help on using the changeset viewer.