Changeset 203 for trunk/procs/mth_decode.pro
- Timestamp:
- 01/25/10 14:44:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/procs/mth_decode.pro
r181 r203 24 24 '12': strd = [12] 25 25 ELSE : CASE STRMID(stddev_mth, 0, 3) OF 26 'DJF': BEGIN & strd = [1, 2, 12] & ntxt = 'DJF' & END 27 'MAM': BEGIN & strd = [3, 4, 5] & ntxt = 'MAM' & END 28 'JJA': BEGIN & strd = [6, 7, 8] & ntxt = 'JJA' & END 29 'SON': BEGIN & strd = [9, 10, 11] & ntxt = 'SON' & END 26 'DJF': BEGIN & strd = [1, 2, 12] & ntxt = 'DJF' & END 27 'MAM': BEGIN & strd = [3, 4, 5] & ntxt = 'MAM' & END 28 'JJA': BEGIN & strd = [6, 7, 8] & ntxt = 'JJA' & END 29 'SON': BEGIN & strd = [9, 10, 11] & ntxt = 'SON' & END 30 30 ELSE: CASE STRMID(stddev_mth, 0, 6) OF 31 'JASOND' : BEGIN & strd = [7, 8, 9, 10, 11, 12] & ntxt = 'JASOND' & END 32 'JFMAMJ' : BEGIN & strd = [1, 2, 3, 4, 5, 6] & ntxt = 'JFMAMJ' & END 33 ELSE : BEGIN & strd = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] & ntxt = 'Annual' & END 34 ENDCASE 31 'JASOND' : BEGIN & strd = [7, 8, 9, 10, 11, 12] & ntxt = 'JASOND' & END 32 'JFMAMJ' : BEGIN & strd = [1, 2, 3, 4, 5, 6] & ntxt = 'JFMAMJ' & END 33 ELSE : BEGIN & strd = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] & ntxt = 'Annual' & END 34 ENDCASE 35 35 ENDCASE 36 36 ENDCASE … … 38 38 nmth = (size(strd))[1] 39 39 njpt = n_elements((lindgen(jpt))[0:*:12]) 40 IF debug_w THEN print, ' nmth,njpt', nmth, njpt 41 40 IF debug_w THEN print, ' nmth,njpt', nmth, njpt 41 42 42 idxm = lonarr(nmth, njpt) 43 43 44 FOR imth = 0, nmth-1 DO BEGIN 44 FOR imth = 0, nmth-1 DO BEGIN 45 45 idxm[imth, *]= (lindgen(jpt))[strd[imth]-1:*:12] 46 ENDFOR 46 ENDFOR 47 47 48 48 IF nmth EQ 1 THEN ntxt = mth[strd-1] 49 49 50 50 print, ' Warning: monthly computation and average for following period: ', ntxt
Note: See TracChangeset
for help on using the changeset viewer.