| Image Tools | Text Tools | General | license | .
. . . .
___
Home
___
IGOR
___
Alpha
___
PGP
___
Resume
___

These packages are components of my JEG Tools, which you can download for Mac OS MacOS or Windoze Windoze.

A collection of tools for text manipulations in IGOR Pro, consisting of


JEG Extract Dimensions

Given a string containing a dimensioned number, sets two globals in the current data folder: V_dimensionValue is the numerical value and S_dimensionString is (dur) the dimension string. SI prefixes are extracted from the dimension string and the value is adjusted accordingly (not all prefixes are included, but they're easy to add).

Example:
JEG_ExtractDimensions("43.234 nm")
Result:
V_dimensionValue = 4.3234E-08
S_dimensionString = "m"

Needs:

History:

modifiedbyrevreason
9/25/96 JEG 1.0 original
10/08/96 JEG 1.1 Fixed bug in parsing of "~" prefix for 10-6

JEG Keyword-Value

Just like WaveMetrics' Keyword-Value routines, except two additional parameters are passed: a field separator and a record separator.

Example:
NanoScope® headers consist of keyworded records. In NanoScope® II, keywords are separated from values by " = ", but NanoScope® III uses ":". In both, records are separated by knuckle-dragger carriage-return/line-feeds.
In my reader for NSII files, the scan size in nm is obtained by
JEG_NumByKey("scan_sz", theHeader, " = ", crlf)
In my reader for NSIII files, the scan size is obtained by
JEG_AbortingStrByKey("\Scan size", theHeaders[imageNumber], ":", crlf) and the string is converted to proper dimensions with JEG_ExtractDimensions()

History:

modifiedbyrevreason
9/25/96 JEG 1.0 original
08/02/98 JEG 1.1 corrected parameter order for "replace" routines

JEG Strings as Lists

Additional string-list routines to give greater flexibility in list a field separators. Largely supplanted by IGOR 3.14 and later.

Needs:

  • #include <Strings as Lists>
  • #include <NumInList>

History:

modifiedbyrevreason
8/11/1998 JEG 1.0 original

JEG Strip Whitespace

Eliminates leading and trailing whitespace (defined by user; pass " \t" for spaces and tabs) and replaces runs of whitespace with a single space character.

History:

modifiedbyrevreason
9/25/96 JEG 1.0 original

Disclaimer:

WaveMetrics is not responsible for the content of this site.
Please contact me with any questions.

You are the [an error occurred while processing this directive] visitor to this page.

Last modified August 5, 2003 2:28 PM
by Jonathan Guyer

[Assembled by Alpha] [Hosted by HIS.COM]
[Made With Macintosh]