Macro examples

This appendix gives you some examples of macros. You may use the macros that appear here or write your own. For more detailed information on working with macros, see Chapter 4., Macros.


4dv.mac

 > ; Macro manufactures a simple 4D (16x16x16x16)
 > ; matrix with synthetic cross peaks located
 > ; at (D1,D2,D3,D4) indices (8,8,8,4),
 > ; (8,8,8,8), and at (8,8,8,13).
;
;
 > ; make cross peaks
 > ;


diag.mac

 > ; Macro extracts the diagonal plane out of a
 > ; square-cube 3D matrix and stores diagonal
 > ; as a 2D matrix. Caution, macro will overwrite
 > ; matrix defined as 'mx2d'.
 > ;
 > ; Macro employs vector shuttle which effectively
 > ; exploits FELIX bricks.
 > ;


dss.mac

 > ; Macro generates a so-called `doubly-phase-shifted'
 > ; window function. Shows that as expected, anything is
 > ; possible. For cognoscente only...
 > ;
 > ; Initial phase is 90-degrees, final phase is 165-degrees.
 > ;


eval_point.mac

 > ; Macro evaluates a particular point in each
 > ; vector of a serial 2D data file and stores
 > ; output in a FELIX macro file. Macro presents
 > ; example of using one macro to build another
 > ; macro.
 > ;


lpf_d2.mac

 > ; Simple macro to adjust the 1st point in a
 > ; D2(t1)-vector of a transformed 2D matrix
 > ; using LP. Removes missampling artifact in
 > ; virtual acqisition. Caution, original
 > ; matrix is overwritten.
 > ;


madd.mac

 > ; Macro sums two matrices in a D1-vector-wise
 > ; fashion. Macro exploits the FELIX matrix format
 > ; to improve efficiency. Caution, macro will
 > ; overwrite 'sum matrix'.
 > ;
 > ;


msub.mac

 > ; Macro subtracts two matrices in a D1-vector-wise
 > ; fashion. Macro exploits the FELIX matrix format
 > ; to improve efficiency. Caution, macro will
 > ; overwrite 'difference matrix'.
 > ;


mult.mac

 > ; Complex data point in work is multiplied by a
 > ; user-specified value (real number or integer).
 > ;


old2new.mac

 > ; Macro converts old serial FELIX data file to
 > ; new data file format.


psi.mac

 > ; Macro conducts the imaginary-part of a D1 hypercomplex
 > ; transform on data acquired in separate real and
 > ; imaginary data files- for antiquaries only!


psr.mac

 > ; Macro conducts the real-part of a D1 hypercomplex
 > ; transform on data acquired in separate real and
 > ; imaginary data files- for antiquaries only!


rev_bundle.mac

 > ; Reverse vectors of a ND matrix using bundle-mode
 > ; access. Note that original matrix is overwritten!!!
 > ;


zap.mac

 > ; Original macro written by Dr. Walter Massefski.
 > ; Macro conducts a 'circular-shift' on data to place
 > ; 'solvent' peak at exact center, then applies the
 > ; convolution-based (cnv) solvent suppression and back
 > ; shifts the data.
 > ;