McIDAS User's Guide
Version 2010.2

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


Using Strings

To run a string containing a command, type a pound symbol (#) followed by the string name and press Enter. For example, if the string LAX contains the value PC L KLAX, type #LAX on the command line and press Enter to run the PC command.

To use a string's value in a command, type #string in the appropriate position on the command line. For example, if the string LL contains the value -35:30:15 98:25:40, the entry IMGDISP GOES/IR LATLON=#LL is converted to IMGDISP GOES/IR LATLON=-35:30:15 98:25:40 when you press Enter.

Strings can be nested, meaning that one string is used in another. For example, if you create a string called IMAGE using the command
TE IMAGE "IMGDISP GOES/IR LATLON=#LL, the string #LL is expanded so that the string IMAGE contains the value IMGDISP GOES/IR LATLON=-35:30:15 98:25:40. Nested strings must be defined before they can be used in another string.

If the nested string contains a value that will change, use two pound signs in the command string instead of one. This forces the nested string's value to be expanded when the command string is run rather than when it is created with TE. For example, if the value of LL will change, create the string IMAGE with the command TE IMAGE "IMGDISP GOES/IR LATLON=##LL. The command string IMAGE now contains IMGDISP GOES/IR LATLON=#LL; in other words, it contains a string for latitude/longitude rather than an actual value. The value for the nested string LL will be substituted when you enter the command #IMAGE.

If a string with a single-letter name contains a command, run the command by typing #letter and pressing Enter, or by pressing the Ctrl key and the letter at the same time. For example, if the string T contains the value IMGPROBE LIST BOX TEMP, run the IMGPROBE command by entering #T, or by pressing Ctrl T.


[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]