Changeset 131 for trunk/SRC/Tests


Ignore:
Timestamp:
07/06/06 16:52:56 (18 years ago)
Author:
pinsard
Message:

improvements of ReadWrite/?*.pro header

Location:
trunk/SRC/Tests
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Tests/tst_basic.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r114 r131  
     1;+ 
     2; @file_comments 
     3; figure 1: basics plots 
     4; plot and contours 
     5; 
     6; @history 
     7; Sebastien Masson may 2005 
     8; 
     9; @version $Id$ 
     10;- 
    111PRO tst_basic 
    212; 
    3 ; figure 1: basics plots 
    4 ; 
    513; 1) plot 
    6 ; 
    714; 
    815  compile_opt idl2, strictarrsubs 
     
    2734  contour, z, /overplot, c_label = rebin([1, 0], 2, n), levels = n*ind $ 
    2835           , c_charthick = 2, c_charsize = 1.5, c_colors = 250*ind 
    29             
    3036  return 
    3137end 
  • trunk/SRC/Tests/tst_initlev.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' 
    28initncdf, file, glamboundary = [20, 380], useasmask = 'votemper' $ 
  • trunk/SRC/Tests/tst_initlev_index.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' 
    28initncdf, file, glamboundary = [20, 380], useasmask = 'votemper' $ 
  • trunk/SRC/Tests/tst_initlev_index_stride.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' 
    28initncdf, file, glamboundary = [20, 380], useasmask = 'votemper' $ 
  • trunk/SRC/Tests/tst_initlev_stride.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' 
    28initncdf, file, glamboundary = [20, 380], useasmask = 'votemper' $ 
  • trunk/SRC/Tests/tst_initorca05.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
    14; 
     5; @version $Id$ 
     6;- 
    27@cm_4mesh 
    38@cm_4cal 
  • trunk/SRC/Tests/tst_initorca05_index.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
    1 ; 
     1;+ 
     2; @file_comments 
    23; definition of the domain on ORCA2 but with i/j index instead of 
    34; longitude/latitude 
    45; 
    5 ; deferent possibilities are proposed 
     6; different possibilities are proposed 
     7; @history 
     8; Sebastien Masson 
     9; 
     10; @version $Id$ 
     11;- 
    612; 
    713; 1) definition with a file 
  • trunk/SRC/Tests/tst_initorca05_index_stride.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
    1 ; 
     1;+ 
     2; @file_comments 
    23; definition of the domain on ORCA2 but with i/j index instead of 
    34; longitude/latitude 
    45; 
    5 ; deferent possibilities are proposed 
     6; different possibilities are proposed 
    67; 
     8; @history 
     9; Sebastien Masson 
     10; 
     11; @version $Id$ 
     12;- 
    713; 1) definition with a file 
    814; 
  • trunk/SRC/Tests/tst_initorca05_short.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc' 
    28initncdf, file, glamboundary = [20, 380], xminmesh = 1, xmaxmesh = -1 $ 
  • trunk/SRC/Tests/tst_initorca05_short_stride.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc' 
    28initncdf, file, glamboundary = [20, 380], xminmesh = 1, xmaxmesh = -1 $ 
  • trunk/SRC/Tests/tst_initorca05_stride.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17; 
    28@cm_4mesh 
  • trunk/SRC/Tests/tst_initorca2.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17; 
    28@cm_4mesh 
  • trunk/SRC/Tests/tst_initorca2_index.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
    1 ; 
     1;+ 
     2; @file_comments 
    23; definition of the domain on ORCA2 but with i/j index instead of 
    34; longitude/latitude 
    45; 
    5 ; deferent possibilities are proposed 
     6; different possibilities are proposed 
     7; @history 
     8; Sebastien Masson 
    69; 
     10; @version $Id$ 
     11;- 
    712; 
    813; 1) definition with a file 
  • trunk/SRC/Tests/tst_initorca2_index_stride.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
    12; 
     3; @file_comments 
    24; definition of the domain on ORCA2 but with i/j index instead of 
    35; longitude/latitude 
    46; 
    5 ; deferent possibilities are proposed 
     7; different possibilities are proposed 
    68; 
     9; @history 
     10; Sebastien Masson 
     11; 
     12; @version $Id$ 
     13;- 
    714; 
    815; 1) definition with a file 
  • trunk/SRC/Tests/tst_initorca2_short.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc' 
    28initncdf, file, glamboundary = [20, 380], xminmesh = 1, xmaxmesh = 180 $ 
  • trunk/SRC/Tests/tst_initorca2_short_stride.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc' 
    28initncdf, file, glamboundary = [20, 380], xminmesh = 1, xmaxmesh = 180 $ 
  • trunk/SRC/Tests/tst_initorca2_stride.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r77 r131  
     1;+ 
     2; @history 
     3; Sebastien Masson 
     4; 
     5; @version $Id$ 
     6;- 
    17; 
    28@cm_4mesh 
  • trunk/SRC/Tests/tst_plt.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r114 r131  
     1;+ 
     2; @keyword IMAGE 
     3; 
     4; @history 
     5; Sebastien Masson 
     6; 
     7; @version $Id$ 
     8;- 
    19PRO tst_plt, IMAGE = image 
    210; commons 
     
    4957; zoom 
    5058  IF key_onearth THEN box = [40, 375, -20, 20] $ 
    51   ELSE box = [jpi/4, 3*jpi/4, jpj/4, 3*jpj/4]  
     59  ELSE box = [jpi/4, 3*jpi/4, jpj/4, 3*jpj/4] 
    5260  plt, temp, boxzoom = box, /landscape 
    5361  if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ 
     
    5765; projections 
    5866  IF key_onearth THEN BEGIN 
    59 ;  
     67; 
    6068    plt, temp, boxzoom = [20, 380, 60, 90], /stereo, map = [90, 0, 0], /portrait 
    6169    if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ 
  • trunk/SRC/Tests/tst_pltt.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r114 r131  
     1;+ 
     2; @keyword IMAGE 
     3; 
     4; @history 
     5; Sebastien Masson 
     6; 
     7; @version $Id$ 
     8;- 
    19PRO tst_pltt, IMAGE = image 
    210; commons 
     
    5058; equatorial plot 
    5159; 
    52   IF key_onearth THEN BEGIN  
     60  IF key_onearth THEN BEGIN 
    5361    a = abs(gphit[0, *]) 
    5462    yind = where(a EQ min(a)) 
    5563    domdef, 20, 380, yind[0], yind[n_elements(yind)-1] $ 
    5664      , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], gridtype = 'T', /yindex 
    57   ENDIF ELSE BEGIN  
     65  ENDIF ELSE BEGIN 
    5866    domdef, min(glamt), max(glamf), jpj/2, jpj/2 $ 
    5967      , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], gridtype = 'T', /yindex 
    60   ENDELSE  
     68  ENDELSE 
    6169  temp = read_ncdf('votemper', 00101, 01231, file = file) 
    6270  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab 
     
    6876; yt plot along the column that contain the largest latitude 
    6977; 
    70   IF key_onearth THEN BEGIN  
     78  IF key_onearth THEN BEGIN 
    7179    ind = where(gphit EQ max(gphit)) 
    7280    ind = ind[0] MOD jpi 
    7381    domdef, ind, ind, -90, 90, gdept[0], gdept[0], gridtype = 'T', /xindex 
    74   ENDIF ELSE BEGIN  
     82  ENDIF ELSE BEGIN 
    7583    domdef, jpi/2, jpi/2, min(gphit), max(gphif), gdept[0], gdept[0], gridtype = 'T', /xindex 
    76   ENDELSE  
     84  ENDELSE 
    7785 
    7886  temp = read_ncdf('votemper', 00101, 01231, file = file) 
  • trunk/SRC/Tests/tst_pltz.pro

    • Property svn:executable deleted
    • Property svn:keywords set to Id
    r114 r131  
     1;+ 
     2; @keyword IMAGE 
     3 
     4; @history 
     5; Sebastien Masson 
     6; 
     7; @version $Id$ 
     8;- 
    19PRO tst_pltz, IMAGE = image 
    210; commons 
     
    2432  temp = read_ncdf('votemper', 00101, 00131, file = file) 
    2533  IF key_forgetold THEN help, temp.arr ELSE help, temp.tab 
    26 ;  
     34; 
    2735  pltz, temp, /portrait 
    2836  if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ 
     
    6775; yt plot along the column that contain the largest latitude 
    6876; 
    69   IF key_onearth THEN BEGIN  
     77  IF key_onearth THEN BEGIN 
    7078    ind = where(gphit EQ max(gphit)) 
    7179    ind = ind[0] MOD jpi 
    7280    domdef, ind, ind, -90, 90, 0, max(gdept), gridtype = 'T', /xindex 
    73   ENDIF ELSE BEGIN  
     81  ENDIF ELSE BEGIN 
    7482    domdef, jpi/2, jpi/2, min(gphit), max(gphif), 0, max(gdept), gridtype = 'T', /xindex 
    75   ENDELSE  
     83  ENDELSE 
    7684 
    7785  temp = read_ncdf('votemper', 00101, 01231, file = file) 
     
    106114; comparison between real section and false oblique sections 
    107115; 
    108   IF (where(gphit EQ 0))[0] NE -1 THEN BEGIN  
     116  IF (where(gphit EQ 0))[0] NE -1 THEN BEGIN 
    109117    IF key_onearth THEN box = [20, 380, 0, 0, 0, 6000] $ 
    110118    ELSE box = [0, jpi-1, jpj/2, jpj/2, 0, 6000] 
     
    113121    pltz, temp, boxzoom = [6000], /portrait, small = [1, 2, 1] $ 
    114122          , zoom = 500, zratio = .5 
    115      
     123 
    116124    IF key_onearth THEN endpoints = [20, 0, 380, 0] $ 
    117125    ELSE endpoints = [0, jpj/2, jpi-1, jpj/2] 
     
    121129          , zoom = 500, zratio = .5 $ 
    122130          , small = [1, 2, 2], /noerase 
    123      
     131 
    124132    if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png 
    125133    cnt = cnt + 1 
    126   ENDIF  
    127    
     134  ENDIF 
     135 
    128136  return 
    129137end 
Note: See TracChangeset for help on using the changeset viewer.