RUN - Run macro

The command line interface lends itself naturally to implementation of macros, which are simply text files that string together commands just as they would be typed directly.  An <ENTER> key is simulated with a comma, and must be added to terminate each command that would require <ENTER> to be executed when typed on the keyboard.

If the name of the macro is not supplied with the run command, a dialog box will be displayed allowing a macro file to be selected.

The first line of a macro must be  "wxNUTS Macro"  and it is case-sensitive.  Blank lines are ignored.  Comment lines can be inserted by beginning the line with a semi-colon.   

Single-letter commands that operate within subroutines can be included in macros, but should not be followed by a comma.

Below are sample macros for processing 2D data:  magnitude, hypercomplex and echo-antiecho.  For phase-sensitive data, manual phasing will be needed in one or both dimensions after the macro is finished.

Magnitude

wxNUTS Macro
; for processing of magnitude 2D data

; apply sine squared window fcn, then FT
ms 0,
ms 0,
FT,

;transpose
TD,

; apply sine squared window fcn, ZF one time, then FT
ms 0,
ms 0,
zf,
ft,

; spectrum reverse
sr,

; transpose, compute magnitude calculation
td,
mc,

; display quick intensity plot
mh 0.5,
ip,

Hypercomplex

wxNUTS Macro
; for processing of hypercomplex 2D data

; apply cosine squared window fcn, then FT
ms 90,
ms 90,
FT,

; switch to "pairwise" mode
pairwise on,

;transpose
TDhyper,

; apply cosine squared window fcn, ZF one time, then FT
ms 90,
ms 90,
zf,
ft,

; spectrum reverse
sr,

; display quick intensity plot, ready for phasing
mh 1,
ip,

Echo-antiecho

wxNUTS Macro
; for processing of echo-antiecho 2D data

; apply cosine squared window fcn, then FT
ms 90,
ms 90,
FT,

; combine pairs of slices
aspairs,

; switch to "pairwise" mode
pairwise on,

;transpose
TDecho,

; apply cosine squared window fcn, ZF one time, then FT
ms 90,
ms 90,
zf,
ft,

; spectrum reverse
sr,

; display quick intensity plot, ready for phasing
mh 1,
ip,

 

Last updated:  6/20/06