Changeset 131 for trunk/SRC/Tests
- Timestamp:
- 07/06/06 16:52:56 (18 years ago)
- 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 ;- 1 11 PRO tst_basic 2 12 ; 3 ; figure 1: basics plots4 ;5 13 ; 1) plot 6 ;7 14 ; 8 15 compile_opt idl2, strictarrsubs … … 27 34 contour, z, /overplot, c_label = rebin([1, 0], 2, n), levels = n*ind $ 28 35 , c_charthick = 2, c_charsize = 1.5, c_colors = 250*ind 29 30 36 return 31 37 end -
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 ;- 1 7 file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' 2 8 initncdf, 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 ;- 1 7 file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' 2 8 initncdf, 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 ;- 1 7 file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' 2 8 initncdf, 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 ;- 1 7 file = 'Levitus98_1m_01_12_Temperature_Pot_1x1.nc' 2 8 initncdf, 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 1 4 ; 5 ; @version $Id$ 6 ;- 2 7 @cm_4mesh 3 8 @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 2 3 ; definition of the domain on ORCA2 but with i/j index instead of 3 4 ; longitude/latitude 4 5 ; 5 ; deferent possibilities are proposed 6 ; different possibilities are proposed 7 ; @history 8 ; Sebastien Masson 9 ; 10 ; @version $Id$ 11 ;- 6 12 ; 7 13 ; 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 2 3 ; definition of the domain on ORCA2 but with i/j index instead of 3 4 ; longitude/latitude 4 5 ; 5 ; d eferent possibilities are proposed6 ; different possibilities are proposed 6 7 ; 8 ; @history 9 ; Sebastien Masson 10 ; 11 ; @version $Id$ 12 ;- 7 13 ; 1) definition with a file 8 14 ; -
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 ;- 1 7 file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc' 2 8 initncdf, 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 ;- 1 7 file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc' 2 8 initncdf, 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 ;- 1 7 ; 2 8 @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 ;- 1 7 ; 2 8 @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 2 3 ; definition of the domain on ORCA2 but with i/j index instead of 3 4 ; longitude/latitude 4 5 ; 5 ; deferent possibilities are proposed 6 ; different possibilities are proposed 7 ; @history 8 ; Sebastien Masson 6 9 ; 10 ; @version $Id$ 11 ;- 7 12 ; 8 13 ; 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 ;+ 1 2 ; 3 ; @file_comments 2 4 ; definition of the domain on ORCA2 but with i/j index instead of 3 5 ; longitude/latitude 4 6 ; 5 ; d eferent possibilities are proposed7 ; different possibilities are proposed 6 8 ; 9 ; @history 10 ; Sebastien Masson 11 ; 12 ; @version $Id$ 13 ;- 7 14 ; 8 15 ; 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 ;- 1 7 file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc' 2 8 initncdf, 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 ;- 1 7 file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc' 2 8 initncdf, 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 ;- 1 7 ; 2 8 @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 ;- 1 9 PRO tst_plt, IMAGE = image 2 10 ; commons … … 49 57 ; zoom 50 58 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] 52 60 plt, temp, boxzoom = box, /landscape 53 61 if keyword_set(image) then saveimage, 'tst_plt_'+image+'_'+string(cnt, format='(i2.2)')+'.png', /png $ … … 57 65 ; projections 58 66 IF key_onearth THEN BEGIN 59 ; 67 ; 60 68 plt, temp, boxzoom = [20, 380, 60, 90], /stereo, map = [90, 0, 0], /portrait 61 69 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 ;- 1 9 PRO tst_pltt, IMAGE = image 2 10 ; commons … … 50 58 ; equatorial plot 51 59 ; 52 IF key_onearth THEN BEGIN 60 IF key_onearth THEN BEGIN 53 61 a = abs(gphit[0, *]) 54 62 yind = where(a EQ min(a)) 55 63 domdef, 20, 380, yind[0], yind[n_elements(yind)-1] $ 56 64 , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], gridtype = 'T', /yindex 57 ENDIF ELSE BEGIN 65 ENDIF ELSE BEGIN 58 66 domdef, min(glamt), max(glamf), jpj/2, jpj/2 $ 59 67 , gdept[10 < (jpk-1)], gdept[10 < (jpk-1)], gridtype = 'T', /yindex 60 ENDELSE 68 ENDELSE 61 69 temp = read_ncdf('votemper', 00101, 01231, file = file) 62 70 IF key_forgetold THEN help, temp.arr ELSE help, temp.tab … … 68 76 ; yt plot along the column that contain the largest latitude 69 77 ; 70 IF key_onearth THEN BEGIN 78 IF key_onearth THEN BEGIN 71 79 ind = where(gphit EQ max(gphit)) 72 80 ind = ind[0] MOD jpi 73 81 domdef, ind, ind, -90, 90, gdept[0], gdept[0], gridtype = 'T', /xindex 74 ENDIF ELSE BEGIN 82 ENDIF ELSE BEGIN 75 83 domdef, jpi/2, jpi/2, min(gphit), max(gphif), gdept[0], gdept[0], gridtype = 'T', /xindex 76 ENDELSE 84 ENDELSE 77 85 78 86 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 ;- 1 9 PRO tst_pltz, IMAGE = image 2 10 ; commons … … 24 32 temp = read_ncdf('votemper', 00101, 00131, file = file) 25 33 IF key_forgetold THEN help, temp.arr ELSE help, temp.tab 26 ; 34 ; 27 35 pltz, temp, /portrait 28 36 if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png $ … … 67 75 ; yt plot along the column that contain the largest latitude 68 76 ; 69 IF key_onearth THEN BEGIN 77 IF key_onearth THEN BEGIN 70 78 ind = where(gphit EQ max(gphit)) 71 79 ind = ind[0] MOD jpi 72 80 domdef, ind, ind, -90, 90, 0, max(gdept), gridtype = 'T', /xindex 73 ENDIF ELSE BEGIN 81 ENDIF ELSE BEGIN 74 82 domdef, jpi/2, jpi/2, min(gphit), max(gphif), 0, max(gdept), gridtype = 'T', /xindex 75 ENDELSE 83 ENDELSE 76 84 77 85 temp = read_ncdf('votemper', 00101, 01231, file = file) … … 106 114 ; comparison between real section and false oblique sections 107 115 ; 108 IF (where(gphit EQ 0))[0] NE -1 THEN BEGIN 116 IF (where(gphit EQ 0))[0] NE -1 THEN BEGIN 109 117 IF key_onearth THEN box = [20, 380, 0, 0, 0, 6000] $ 110 118 ELSE box = [0, jpi-1, jpj/2, jpj/2, 0, 6000] … … 113 121 pltz, temp, boxzoom = [6000], /portrait, small = [1, 2, 1] $ 114 122 , zoom = 500, zratio = .5 115 123 116 124 IF key_onearth THEN endpoints = [20, 0, 380, 0] $ 117 125 ELSE endpoints = [0, jpj/2, jpi-1, jpj/2] … … 121 129 , zoom = 500, zratio = .5 $ 122 130 , small = [1, 2, 2], /noerase 123 131 124 132 if keyword_set(image) then saveimage, 'tst_pltz_'+image+'_'+string(cnt, format = '(i2.2)')+'.png', /png 125 133 cnt = cnt + 1 126 ENDIF 127 134 ENDIF 135 128 136 return 129 137 end
Note: See TracChangeset
for help on using the changeset viewer.