Changeset 226 for trunk/SRC/Colors


Ignore:
Timestamp:
03/16/07 10:22:26 (17 years ago)
Author:
pinsard
Message:

corrections of some misspellings in some *.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Colors/newpalette.pro

    r163 r226  
    22;+ 
    33; 
    4 ; @file_comments  
     4; @file_comments 
    55; Allows to save the palette which is on the screen 
    66; in a same type file than the one given by default in IDL 
    77; 'colors1.tbl'. 
    88; 
    9 ; @categories  
     9; @categories 
    1010; Color 
    1111; 
     
    1313; a string containing the name of the new palette we want to write. 
    1414; 
    15 ; @keyword OVER  
     15; @keyword OVER 
    1616; the number of the palette we want to replace 
    1717; 
     
    1919; The file containing the color palettes. It can be in any directory of the !path. 
    2020; 
    21 ; @keyword _EXTRA  
     21; @keyword _EXTRA 
    2222; Used to pass modifyct keywords 
    2323; 
     
    4545; is nametbl belongs to the same effective user ID (UID) as the IDL process? 
    4646    IF !d.name EQ 'X' THEN BEGIN ; works only for unix tye machine 
    47       IF file_test(nametbl, /user) NE 1 THEN BEGIN  
    48         noanswer = report('The file '+nametbl+' is not yours... Do you want to copy '+nameshort+' in your MyIDL diectory: '+homedir+' ?', /default_no, /question) 
    49         IF noanswer THEN return ELSE BEGIN  
     47      IF file_test(nametbl, /user) NE 1 THEN BEGIN 
     48        noanswer = report('The file '+nametbl+' is not yours... Do you want to copy '+nameshort+' in your MyIDL directory: '+homedir+' ?', /default_no, /question) 
     49        IF noanswer THEN return ELSE BEGIN 
    5050          file_copy, nametbl, homedir  ; copy the file 
    5151          nametbl = homedir + nametbl  ; update its name 
     
    5454    ENDIF 
    5555; no file nametbl found 
    56     ENDIF ELSE BEGIN                            
     56    ENDIF ELSE BEGIN 
    5757      nametbl = file_basename(namesave)        ; get back the original nametbl 
    58       noanswer = report('The file '+nametbl+' was not found !path directories... Do you want to create such a file in  your MyIDL diectory: '+homedir+' ?', /default_no, /question) 
     58      noanswer = report('The file '+nametbl+' was not found !path directories... Do you want to create such a file in  your MyIDL directory: '+homedir+' ?', /default_no, /question) 
    5959      if NOT noanswer then return 
    60       nameorg = filepath('colors1.tbl', subdir = ['resource', 'colors'])  
     60      nameorg = filepath('colors1.tbl', subdir = ['resource', 'colors']) 
    6161      file_copy, nameorg, homedir 
    62     ENDELSE  
     62    ENDELSE 
    6363; is nametbl writable? 
    6464    IF file_test(nametbl, /write) NE 1 THEN file_chmod, nametbl, /u_write 
    6565; make sure that we will really use nametbl name even if _EXTRA keyword is used 
    66     if n_elements(ex) NE 0 then $  
     66    if n_elements(ex) NE 0 then $ 
    6767       if (where(tag_names(ex) EQ 'FILE'))[0] NE -1 then ex.FILE = nametbl 
    6868; 
Note: See TracChangeset for help on using the changeset viewer.