1
;; Sacha Hony and Alain Coulais, 18 September 2012
3
;; testing whether the _EXTRA are working as expected.
5
;; It looks like IDL does not pass on _extra arguments that are
6
;; accepted by the pro/function which is being called
8
; --------------------------------------------
10
pro FFT_EXTRA_KEYWORDS, x, _extra=_extra, by_execute=by_execute
16
ok=EXECUTE("z1=FFT(x)")
17
pb=EXECUTE("z2=FFT(x,_extra=_extra)")
19
z3=FFT(x,_extra=_extra)
21
print, ok, pb, total(abs(z1)), total(abs(z2))
26
; --------------------------------------------
28
pro PLOT_EXTRA_KEYWORDS, x, _extra=_extra, by_execute=by_execute
36
; if fact, xrange is not used by OPLOT ...
37
; (and is not is the keyword list ...)
40
OPLOT, x,_extra=_extra, col=250
46
; --------------------------------------------
48
;; % OPLOT: Keyword XRANGE not allowed in call to: OPLOT
50
pro TEST_EXTRA_KEYWORDS
58
PLOT_EXTRA_KEYWORDS, x, xrange=[0,5]
59
if error EQ 1 then nb_errors=nb_errors+1
63
FFT_EXTRA_KEYWORDS, x, dim=1
64
FFT_EXTRA_KEYWORDS, x, forthefun=1
65
if error EQ 1 then nb_errors=nb_errors+1