- Timestamp:
- 04/20/12 12:02:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/search_amsufiles.pro
r528 r536 55 55 ; $URL$ 56 56 ; 57 ; - fplod 20120419 58 ; 59 ; * add some arg checking 60 ; 57 61 ; - fplod 20120323 58 62 ; … … 91 95 + 'Usage : ' + usage]) 92 96 return, result 97 ENDIF 98 ; 99 ; 100 ; check required and optional parameters 101 nparam = N_PARAMS() 102 IF (nparam LT 2) THEN BEGIN 103 ras = report(['Incorrect number of arguments.' $ 104 + '!C' $ 105 + 'Usage : ' + usage]) 106 return, result 107 ENDIF 108 ; 109 arg_type = size(yyyy,/type) 110 IF ((arg_type NE 2) AND (arg_type NE 3)) THEN BEGIN 111 ras = report(['Incorrect arg type yyyy' $ 112 + '!C' $ 113 + 'Usage : ' + usage]) 114 return, result 115 ENDIF 116 ; 117 arg_type = size(mm, /type) 118 IF ((arg_type NE 2) AND (arg_type NE 3)) THEN BEGIN 119 ras = report(['Incorrect arg type mm' $ 120 + '!C' $ 121 + 'Usage : ' + usage]) 122 return, result 123 ENDIF 124 ; 125 arg_type = size(dd, /type) 126 IF ((arg_type NE 2) AND (arg_type NE 3)) THEN BEGIN 127 ras = report(['Incorrect arg type dd' $ 128 + '!C' $ 129 + 'Usage : ' + usage]) 130 return, result 131 ENDIF 132 ; 133 yyyymmdd=jul2date(julday(mm,dd,yyyy)) 134 IF ((yyyymmdd LT yyyymmddb_min) OR (yyyymmdd GT yyyymmdde_max)) THEN BEGIN 135 msg = report([routine + 'eee : ' $ 136 + string(yyyy, format='(1x,I4.4)') $ 137 + string(mm, format='(I2.2)') $ 138 + string(dd, format='(I2.2)') $ 139 + ' must be between' $ 140 + string(yyyymmddb_min, format='(1x,I8.8)') $ 141 + ' and ' $ 142 + string(yyyymmdde_max, format='(1x,I8.8)') $ 143 ]) 144 return, result 93 145 ENDIF 94 146 ; … … 140 192 CASE size(files_list,/DIMENSION) OF 141 193 0L : BEGIN 142 print, 'pas de fichiers'194 print, routine, ': iii : pas de fichiers' 143 195 END 144 196 ELSE: BEGIN 145 print, 'nb de fichers', size(files_list,/DIMENSION)197 print, routine ,': iii : nb de fichiers', size(files_list,/DIMENSION) 146 198 END 147 199 ENDCASE
Note: See TracChangeset
for help on using the changeset viewer.