Ignore:
Timestamp:
07/21/06 14:47:49 (18 years ago)
Author:
navarro
Message:

english and nicer header (2a)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/STRING/strkeywd.pro

    r134 r142  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME: strkeywd (string keywords) 
    65; 
    7 ; PURPOSE: traduit une sturcture en un string pouvant etre utilise 
    8 ; pour specifier des keywords ds l''appelle d''une fonction qd on 
    9 ; utilise execute (cf l''exemple) 
     6; @file_comments 
     7; Translate a sturcture in a string able to be used to specify keywords  
     8; in the calling of a function when we use EXECUTE (see example) 
    109; 
    11 ; CATEGORY: pour passer des mots cles avec execute ! 
     10; @categories  
     11;  
     12; @param STRUCT 
     13; a structure 
    1214; 
    13 ; CALLING SEQUENCE:res=strkeywd(struct) 
    14 ;  
    15 ; INPUTS:struct: une structure 
     15; @returns 
     16; a string composed like following: 
     17; For each element of the structure, we write a part of the string as:  
     18;         'name_of_the_element=content_of_the_element' 
    1619; 
    17 ; KEYWORD PARAMETERS: 
     20; @restrictions 
     21; If an element of the structure contain an array, it will be convert in a vector. 
    1822; 
    19 ; OUTPUTS:un string compose de la facon suivante: 
    20 ;         pour chaque element de la structure, on ecrit une partie du 
    21 ;         string sous la forme:  
    22 ;         'nom_de_l''element=contennu de l''element' 
     23; @restrictions 
     24; Beware, this function has loops, ifs ad cases everywhere. So it can  
     25; not be used by big keywords (with a lot of elements which are big  
     26; arrays). The input keyword must not contain Complex floatings, structure,  
     27; Double-precision complex, Pointer, Object reference, Unsigned Integer,  
     28; Unsigned Longword Integer, 64-bit Integer or Unsigned 64-bit Integer. 
    2329; 
    24 ; COMMON BLOCKS: 
    25 ; 
    26 ; SIDE EFFECTS: 
    27 ; 
    28 ;   Si un element de la structure contient un tableau, il sera 
    29 ;   convertit en vecteur. 
    30 ; 
    31 ; RESTRICTIONS: 
    32 ; 
    33 ;   attention cette fonction comporte des boucles, des if et des cases 
    34 ;   ds tous les sens. Elle ne doit donc pas etre utilisee avec des 
    35 ;   structure de grosse taille (avec bcp d''elements et avec des 
    36 ;   elements etant de gros tableaux). 
    37 ;   la structure en entree ne doit pas contenir de Complex floating, de 
    38 ;   structure, de Double-precision complex, de Pointer, de Object 
    39 ;   reference, de Unsigned Integer, de Unsigned Longword Integer, de 
    40 ;   64-bit Integer, de Unsigned 64-bit Integer   
    41 ; 
    42 ; 
    43 ; 
    44 ; EXAMPLE: 
    45 ; 
    46 ; on cree une structure 
     30; @examples 
     31; We create a structure 
    4732;       IDL> b=get_extra(ok=111, year=[1997,1998,1999], age_capitaine=35) 
    4833;       IDL> help, b,/struct 
     
    5136;          OK              INT            111 
    5237;          YEAR            INT       Array[3] 
    53 ; on met cette structure sous forme de string 
     38; We put this structure as a string 
    5439;       IDL> a=strkeywd(b) 
    5540;       IDL> print, a 
    5641;       AGE_CAPITAINE=35, OK=111, YEAR=[1997,1998,1999] 
    57 ; maintenant on peut utiliser le string a pour passer des mots cles ds 
    58 ; une fonction a l''aide de execute!! 
     42; Now we can use the string a to pass keywords in a function thanks to execute!! 
    5943;       IDL> test=execute('c=get_extra('+a+')') 
    6044;       IDL> help, c,/struct 
     
    6448;          YEAR            INT       Array[3] 
    6549; 
    66 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr) 
     50; @history 
     51; Sebastien Masson (smasson@lodyc.jussieu.fr) 
    6752;                      11/10/1999 
     53; 
     54; @version 
     55; $Id$ 
     56; 
    6857;- 
    6958;------------------------------------------------------------ 
Note: See TracChangeset for help on using the changeset viewer.