Changeset 118 for trunk/SRC/Utilities


Ignore:
Timestamp:
06/27/06 17:47:06 (18 years ago)
Author:
pinsard
Message:

add $ in Calendar, Grid, Interpolation, Obsolete and Postscript *.pro files, add svn:keywords Id to all these files, some improvements in header

Location:
trunk/SRC/Utilities
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Utilities/createfunc.pro

    • Property svn:keywords set to Id
    r97 r118  
    66; usefull to avoid the use of execute 
    77; 
    8 ; @param command {in}{required} a scalar string defining the result to be byven back by the function. (see examples) 
     8; @param command {in}{required} a scalar string defining the result to be  
     9; given back by the function. (see examples) 
    910; 
    1011; @keyword FILENAMEIN {in} name of the funccedure to be created. 
    1112;      'for_createfunc.pro' by default 
     13; 
    1214; @keyword KWDLIST {in} a vector string. to specify a list of keywords that 
    1315;      must be included in the function definition. Warning: the string 
     
    1618; @keyword _EXTRA used to pass your keywords to the created function. 
    1719; 
    18 ; SIDE EFFECTS: ends the function name with '.pro' if needed 
     20; @restrictions  
     21; - arguments can be given only through keywords; 
     22; - ends the function name with '.pro' if needed. 
    1923; 
    20 ; @restrictions arguments can be given only through keywords 
    21 ; 
    22 ; @examples  
     24; @examples 
    2325;      IDL> print, createfunc('3*2', filename='test') 
    2426;      IDL> print, createfunc('3*two', filename = 'test' $ 
     
    2729; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    2830;                      May 2005 
     31; 
     32; @version $Id$ 
     33; 
    2934;- 
    3035;------------------------------------------------------------ 
     
    3237;------------------------------------------------------------ 
    3338FUNCTION createfunc, command, FILENAMEIN = filenamein $ 
    34                , KWDLIST = kwdlist, _extra = ex 
     39               , KWDLIST = kwdlist, _EXTRA = ex 
    3540; 
    3641  compile_opt idl2, hidden, strictarrsubs 
     
    3944; define filename if needed 
    4045  if NOT keyword_set(filenamein) then filename = 'for_createfunc.pro' $ 
    41   ELSE filename = filenamein  
     46  ELSE filename = filenamein 
    4247; get the name of the function (not the name of the file containing the function) 
    4348   shortfilename =  file_basename(filename, '.pro') 
     
    5055; create the file 
    5156   if NOT keyword_set(kwdlist) then kwdlist = '' 
    52    kwdlist = kwdlist + ', _extra = ex' 
     57   kwdlist = kwdlist + ', _EXTRA = ex' 
    5358   IF strmid(kwdlist, 0, 1) NE ',' THEN kwdlist = ', ' +  kwdlist 
    5459   putfile, filename, ['function ' + shortfilename + kwdlist $ 
     
    6368   cd, old_dir 
    6469; execute it 
    65    res = call_function(shortfilename, _extra = ex) 
     70   res = call_function(shortfilename, _EXTRA = ex) 
    6671; 
    6772   return, res 
  • trunk/SRC/Utilities/createpro.pro

    • Property svn:keywords changed from Author Date Id Revision to Id
    r97 r118  
    55; @file_comments write an idl procedure, compile it and execute it. 
    66; 
    7 ; @param command {in}{required} a string array defining the procedure to be created. each element will be a line of the created procedure.  
     7; @param command {in}{required} a string array defining the procedure to be created. each element will be a line of the created procedure. 
    88; 
    9 ; @keyword FILENAMEIN name of the procedure to be created. 
     9; @keyword FILENAMEIN {in} name of the procedure to be created. 
    1010;      'for_createpro.pro' by default 
    1111; 
    12 ; @keyword 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 
    1313;      must be included in the procedure definition. Warning: the string 
    1414;      must start with a ',' for example: KWDLIST = ', TOTO = toto' 
    1515; 
     16; @keyword KWDUSED obsolote, please pass directly your keywords through _extra 
     17; 
    1618; @keyword _EXTRA used to pass your keywords to the created procedure. 
    1719; 
    18 ; SIDE EFFECTS: ends the procedure name with '.pro' if needed 
     20; @restrictions 
     21; - is not working with functions, use createfunc instead. 
     22; - arguments can be given only through keywords. 
     23; - ends the procedure name with '.pro' if needed. 
    1924; 
    20 ; @restrictions is not working with functions, use createfunc instead. 
    21 ;              arguments can be given only through keywords 
    22 ; 
    23 ; @examples  
     25; @examples 
    2426;      IDL> createpro, ['print,''OK'''], filename='test' 
    2527;      IDL> createpro, ['if keyword_set(ok) then print,''OK'' else print, ''No'''] $ 
    26 ;      IDL>   , filename = 'test', kwdlist =', ok = ok'  
     28;      IDL>   , filename = 'test', kwdlist =', ok = ok' 
    2729;      IDL> createpro, ['if keyword_set(ok) then print,''OK'' else print, ''No'''] $ 
    28 ;      IDL>   , filename = 'test', kwdlist = ', ok = ok', /ok  
     30;      IDL>   , filename = 'test', kwdlist = ', ok = ok', /ok 
    2931; 
    3032; 
     
    3234; cleaning + new keywords: October 2005 
    3335; Feb. 2006: supress keyword "kwdused" and use call_procedure instead of execute 
     36; 
     37; @version $Id$ 
    3438;- 
    3539;------------------------------------------------------------ 
     
    4953; define filename if needed 
    5054  if NOT keyword_set(filenamein) then filename = 'for_createpro.pro' $ 
    51   ELSE filename = filenamein  
     55  ELSE filename = filenamein 
    5256; get the name of the procedure (not the name of the file containing the procedure) 
    5357   shortfilename =  file_basename(filename, '.pro') 
  • trunk/SRC/Utilities/def_myuniquetmpdir.pro

    • Property svn:keywords set to Id
    r114 r118  
    1212; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    1313;                      June 2005 
     14; 
     15; @version $Id$ 
    1416; 
    1517;- 
  • trunk/SRC/Utilities/demomode_compatibility.pro

    • Property svn:keywords set to Id
    r114 r118  
    22; @categories utilities 
    33; @uses cm_general 
     4; @version $Id$ 
    45;- 
    56PRO demomode_compatibility 
  • trunk/SRC/Utilities/find.pro

    • Property svn:keywords changed from Author Date Id Revision to Id
    r114 r118  
    4848;        vector is unique. 
    4949; 
     50; @keyword _EXTRA used to pass your keywords 
     51; 
    5052; @file_comments all file_search keywords can be used. 
    5153; 
     
    8688;                       6/7/1999: compatibilite mac et windows 
    8789; June 2005: Sebastien Masson: cleaning, use for file_* functions 
     90; 
     91; @version $Id$ 
    8892;- 
    8993;------------------------------------------------------------ 
  • trunk/SRC/Utilities/isadirectory.pro

    • Property svn:keywords changed from Author Date Id Revision to Id
    r114 r118  
    1616; @keyword TITLE the title of the window 
    1717; 
     18; @keyword _EXTRA used to pass your keywords 
     19; 
    1820; @file_comments all dialog_pickfile keywords (like filter) can be used. 
    1921; 
     
    3133;                      June 28, 2000 
    3234; June 2005: Sebastien Masson: cleaning, use for file_* functions 
     35; 
     36; @version $Id$ 
    3337;- 
    3438;------------------------------------------------------------ 
  • trunk/SRC/Utilities/isafile.pro

    • Property svn:keywords changed from Author Date Id Revision to Id
    r114 r118  
    3131;        argument.  
    3232; 
     33; @keyword _EXTRA used to pass your keywords 
     34; 
    3335; @file_comments all find, file_search and dialog_pickfile keywords (like title) can be used 
    3436; 
     
    5254;                      11/2/2000 
    5355; June 2005: Sebastien Masson: cleaning, use for file_* functions 
     56; 
     57; @version $Id$ 
    5458;- 
    5559;------------------------------------------------------------ 
  • trunk/SRC/Utilities/protype.pro

    • Property svn:keywords set to Id
    r114 r118  
    2727; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    2828;                       Feb 2006 
     29; 
     30; @version $Id$ 
    2931;- 
    3032;------------------------------------------------------------ 
Note: See TracChangeset for help on using the changeset viewer.