source: trunk/procs/add_txt_pltt.pro @ 162

Last change on this file since 162 was 162, checked in by pinsard, 15 years ago

start to modify unformal header to idldoc 2. header syntax

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