source: trunk/procs/add_txt_pltt.pro @ 205

Last change on this file since 205 was 205, checked in by pinsard, 14 years ago

homegenize THEN BEGIN ... ENDIF

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1;+
2;
3; define additional text for <pro>pltt</pro>
4;
5; TODO
6; ====
7;
8; should be a function
9;
10; @version
11; $Id$
12;
13;-
14            ; time/space filter ?
15               IF strpos(cmd.plt, '@f') GT 1 THEN BEGIN
16                  filter = long(strmid(cmd.plt, strpos(cmd.plt, '@f')+3, strlen(cmd.plt)-strpos(cmd.plt, '@f')-3))
17                  fildirec = strmid(cmd.plt, strpos(cmd.plt, '@f')+2, 1)
18                  filtxt = ',filter=filter,fildirec=fildirec'
19                  filleg = '  ['+fildirec+'-filter='+string(filter, format = '(I3)')+']'
20               ENDIF ELSE BEGIN
21                  filtxt = ''
22                  filleg = ''
23               ENDELSE
24            ; anomaly
25               IF strmid(cmd.trend, 0, 1) EQ '4' THEN BEGIN
26                  IF strmid(cmd.trend, 1, strlen(cmd.trend)-1) EQ 12 THEN BEGIN
27                   filleg = filleg+'  [seasonal anomaly n=12]'
28                  ENDIF ELSE BEGIN
29                   filleg = filleg+'  [n='+strmid(cmd.trend, 1, strlen(cmd.trend)-1)+ ' anomaly]'
30                  ENDELSE
31               ENDIF
32            ; integral
33               IF field_int EQ 1 AND (size(fld))[0] EQ 1 THEN BEGIN
34                  filleg = filleg+' - integral'
35               ENDIF
36            ; inverse trend
37               IF strmid(cmd.trend, 0, 1) EQ '3' THEN BEGIN
38                  filleg = filleg+'  [n='+strmid(cmd.trend, 1, strlen(cmd.trend)-1)+ ' mean removed]'
39               ENDIF
40            ; running std dev
41               IF run_stddev GT 0 THEN BEGIN
42                  filleg = filleg+' running Std Dev ['+string(run_stddev, format = '(I3)')+']'
43               ENDIF
Note: See TracBrowser for help on using the repository browser.