Changeset 93 for trunk/SRC/Utilities/createpro.pro
- Timestamp:
- 06/07/06 19:12:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Utilities/createpro.pro
r74 r93 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:createpro5 ; write an idl procedure, compile it and execute it. 6 6 ; 7 ; PURPOSE: write an idl procedure, compile it and execute it.7 ; @param command {in}{required} a string array defining the procedure to be created. each element will be a line of the created procedure. 8 8 ; 9 ; CATEGORY: 10 ; 11 ; CALLING SEQUENCE:createpro, command 12 ; 13 ; INPUTS: 14 ; command: a string array defining the procedure to be created. 15 ; each element will be a line of the created procedure. 16 ; 17 ; KEYWORD PARAMETERS: 18 ; 19 ; FILENAMEIN: name of the procedure to be created. 9 ; @keyword FILENAMEIN name of the procedure to be created. 20 10 ; 'for_createpro.pro' by default 21 11 ; 22 ; KWDLIST:a vector string. to specify a list of keywords that12 ; @keyword KWDLIST a vector string. to specify a list of keywords that 23 13 ; must be included in the procedure definition. Warning: the string 24 14 ; must start with a ',' for example: KWDLIST = ', TOTO = toto' 25 15 ; 26 ; _EXTRA: used to pass your keywords to the created procedure. 27 ; 28 ; OUTPUTS: none 29 ; 30 ; COMMON BLOCKS: none 16 ; @keyword _EXTRA used to pass your keywords to the created procedure. 31 17 ; 32 18 ; SIDE EFFECTS: ends the procedure name with '.pro' if needed 33 19 ; 34 ; RESTRICTIONS:is not working with functions, use createfunc instead.20 ; @restrictions is not working with functions, use createfunc instead. 35 21 ; arguments can be given only through keywords 36 22 ; 37 ; EXAMPLE:23 ; @examples 38 24 ; IDL> createpro, ['print,''OK'''], filename='test' 39 25 ; IDL> createpro, ['if keyword_set(ok) then print,''OK'' else print, ''No'''] $ … … 43 29 ; 44 30 ; 45 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr)31 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 46 32 ; cleaning + new keywords: October 2005 47 33 ; Feb. 2006: supress keyword "kwdused" and use call_procedure instead of execute
Note: See TracChangeset
for help on using the changeset viewer.