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/PLOTS/LABEL/lonaxe.pro

    r134 r142  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME:LONAXE 
    65; 
    7 ; PURPOSE:fonction appelee par [XYZ]TICKFORMAT (cf l'help pour voir 
    8 ;         comment l'utiliser) pour labeller les axes en longitude. 
     6; @file_comments 
     7; function called by [XYZ]TICKFORMAT (see the help to see how to use it) to label axes in longitude. 
    98; 
    10 ; CATEGORY:graphe 
     9; @categories 
     10; graphic 
     11;  
     12; @param AXIS  
     13; It is the axis number: 0 for X axis, 1 for Y axis, 2 for Z axis. 
    1114; 
    12 ; CALLING SEQUENCE:[XYZ]TICKFORMAT='lonaxe' 
     15; @param INDEX 
     16; It is the tick mark index which starts at 0. 
     17;        
     18; @param VALUE 
     19; It is the default tick mark value (a floating-point number). 
    1320; 
    14 ; INPUTS:fournis (et imposes) automatiquement par IDL: axis, index, value: 
    15 ;       Axis is the axis number: 0 for X axis, 1 for Y axis, 2 for Z axis. 
    16 ;       Index is the tick mark index which starts at 0. 
    17 ;       Value is the default tick mark value (a floating-point number). 
    18 ; KEYWORD PARAMETERS: 
     21; @returns 
     22; A string, used automatically to label 
    1923; 
    20 ; OUTPUTS:un string, utilise automatiquement pour labeller 
     24; @history 
     25; Sebastien Masson (smasson@lodyc.jussieu.fr) 
     26;                       ??? 
     27;                       14/10/1999 format of labels 
    2128; 
    22 ; COMMON BLOCKS: 
     29; @version 
     30; $Id$ 
    2331; 
    24 ; SIDE EFFECTS: 
    25 ; 
    26 ; RESTRICTIONS: 
    27 ; 
    28 ; EXAMPLE: 
    29 ; 
    30 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr) 
    31 ;                       ??? 
    32 ;                       14/10/1999 format des labels 
    3332;- 
    3433;------------------------------------------------------------ 
     
    3736FUNCTION lonaxe, axis, index, value 
    3837;------------------------------------------------------------ 
    39 ; on ramenne value ds le segment [0,360[ 
     38; We put back value in the segment [0,360[ 
    4039; 
    4140  compile_opt idl2, strictarrsubs 
     
    4342   lon=value mod 360 
    4443   if lon lt 0 then lon=lon+360 
    45 ; format des labels: 
     44; format of labels: 
    4645   case 1 of 
    4746      lon EQ round(lon):fmt = 'i4' 
     
    4948      ELSE:fmt = 'f7.2' 
    5049   endcase 
    51 ; on ecrit le label 
     50; we write the label 
    5251   if lon lt 180 then nom=string(lon,     format='('+fmt+',''E'')') 
    5352   if lon gt 180 then nom=string(360-lon, format='('+fmt+',''W'')') 
Note: See TracChangeset for help on using the changeset viewer.