Changeset 93 for trunk/SRC/Utilities/createfunc.pro
- Timestamp:
- 06/07/06 19:12:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Utilities/createfunc.pro
r74 r93 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:createfunc 5 ; write an idl function, compile it and execute it. 6 ; usefull to avoid the use of execute 6 7 ; 7 ; PURPOSE: write an idl function, compile it and execute it. 8 ; usefull to avoid the use of execute 8 ; @param command {in}{required} a scalar string defining the result to be byven back by the function. (see examples) 9 9 ; 10 ; CATEGORY: 11 ; 12 ; CALLING SEQUENCE:res = createfunc(command) 13 ; 14 ; INPUTS: 15 ; command: a scalar string defining the result to be byven back by the 16 ; function. (see examples) 17 ; 18 ; KEYWORD PARAMETERS: 19 ; 20 ; FILENAMEIN: name of the funccedure to be created. 10 ; @keyword FILENAMEIN {in} name of the funccedure to be created. 21 11 ; 'for_createfunc.pro' by default 22 ; 23 ; KWDLIST: a vector string. to specify a list of keywords that 12 ; @keyword KWDLIST {in} a vector string. to specify a list of keywords that 24 13 ; must be included in the function definition. Warning: the string 25 14 ; must start with a ',' for example: KWDLIST = ', TOTO = toto' 26 15 ; 27 ; _EXTRA: used to pass your keywords to the created function. 28 ; 29 ; OUTPUTS: none 30 ; 31 ; COMMON BLOCKS: none 16 ; @keyword _EXTRA used to pass your keywords to the created function. 32 17 ; 33 18 ; SIDE EFFECTS: ends the function name with '.pro' if needed 34 19 ; 35 ; RESTRICTIONS:arguments can be given only through keywords20 ; @restrictions arguments can be given only through keywords 36 21 ; 37 ; EXAMPLE:22 ; @examples 38 23 ; IDL> print, createfunc('3*2', filename='test') 39 24 ; IDL> print, createfunc('3*two', filename = 'test' $ 40 25 ; , kwdlist ='two = two', two = 2) 41 26 ; 42 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr)27 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 43 28 ; May 2005 44 29 ;-
Note: See TracChangeset
for help on using the changeset viewer.