MarkCsrRegions.ipf: Mark Cursor Regions Functions Date: Tue, 19 Mar 2002 14:42:40 -0800 From: "Jeffrey J. Weimer" Chemistry/Chemical & Materials Engineering, UAH Materials Science Bldng 125, John Wright Dr., Huntsville, AL 35899 http://matsci.uah.edu/~weimer/ MarkCsrRegions.ipf is a procedure file that contains four functions: ExcludeCsrRegion - sets values between cursors to NAN ExcludeExtCsrRegion - sets values outside cursors to NAN HiLiteCsrRegion - marks between cursors with 1 and outside with 0 HiLiteExtCsrRegion - marks between cursors with 0 and outside with 1 They all require that both cursors be on a trace on the frontmost graph. The first two functions (Exclude...) rely on the x scaling of the wave. A typical use is to exclude a certain region of a trace during fitting - it sets the values of the wave to NAN in the trace region to be excluded. The last two functions (HiLite...) do not depend on a wave having x scaling - it works using the point values of the cursors. A typical use is to mark a selected region of a trace in order to propagate an operation over other traces using logic testing on whether the points in the other traces are in the desired region or not. Control over whether to include values at either or both of the cursor points in the operation performed is provide with each function. The functions are compatible with Igor 3.x and above (they use no Igor 4.x code). Further information about how to use the functions is provided by comments in the procedure file. --