- Timestamp:
- 2011-04-26T10:45:52+02:00 (13 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/CONFIG/ORCA2_LIM/IDL_scripts/std_plot_S100m.pro
r2733 r2751 1 pro xxx_S_z105, S1, S2, SLev, sEXP1, sEXP2, start_end, POSTSCRIPT = postscript, _extra = ex1 pro std_plot_S100m, S1, S2, SLev, POSTSCRIPT = postscript, _extra = ex 2 2 3 @common 4 compile_opt idl2, strictarrsubs 5 6 if KEYWORD_SET(POSTSCRIPT) then begin 7 openps, '013_S_z105_'+sEXP1+'-'+sEXP2+'_y'+start_end+'.ps', portrait = 1 8 endif 9 3 compile_opt idl2, strictarrsubs 4 5 @common 6 @std_common 7 8 cdti3 = string(cnt, format = '(i3.3)') 9 print, cdti3 + ') ' + blabla 10 tmp = min(abs(100 - gdept), ind) 11 sdepref = strtrim(round(gdept[ind]), 1)+'m' 12 filename = cdti3 + '_S'+sdepref+'_'+std_file1_T 13 if std_file1_T NE std_file2_T then filename = filename + '_'+std_file2_T 14 if KEYWORD_SET(postscript) then openps, filename+'.ps', portrait = 1 10 15 ; 11 varunit = S1.unit 16 title = 'Salinity ('+sdepref+')!C'+std_file1_T 17 plt, S1, MIN = 33., MAX = 38.2, INTER = .2, format = '(f4.1)' $ 18 , small = [1, 2, 1], COAST_THICK = 2, TITLE = title, boxzoom = [105., 106.], /PORTRAIT, _extra = ex 12 19 ; 20 if std_file1_T NE std_file2_T then begin 21 title = title+ ' - '+std_file2_T 22 plt, S1.arr[*, *, 0] - S2.arr[*, *, 0], MIN = -1., MAX = 1., INTER = .1, STYLE = 'so0so', format = '(f4.1)' $ 23 , small = [1, 2, 2], COAST_THICK = 2, TITLE = title, boxzoom = [105., 106.], /noerase, _extra = ex 24 endif else begin 25 title = title+ ' - Levitus' 26 plt, S1.arr-SLev.arr, MIN = -1., MAX = 1., INTER = 0.1, STYLE = 'so0so', format = '(f4.1)' $ 27 , small = [1, 2, 2], COAST_THICK = 2, TITLE = title, boxzoom = [105., 106.], /noerase, _extra = ex 28 endelse 13 29 14 title=sEXP1+' S (PSU) depth=105m / Sal year '+start_end 15 plt, S1.arr, MIN = 33., MAX = 38.2, INTER = .2, STYLE = 'so0so' $ 16 , small = [1,2,1], COAST_THICK = 2, TITLE = title, boxzoom = [105., 106.], /NOERASE, _extra = ex 17 ; 18 if sEXP1 ne sEXP2 then begin 19 20 title = sEXP1+' - '+sEXP2+' S (PSU) depth=105m / Sal year '+start_end 21 plt, S1.arr[*,*,0] - S2.arr[*,*,0], MIN = -1., MAX = 1., INTER = .1 $ 22 , small = [1,2,2], COAST_THICK = 2, TITLE = title, _extra=ex 23 24 endif else begin 25 26 title=sEXP1+' - Levitus S (PSU) depth=105m / Sal year '+start_end 27 plt, S1.arr-SLev.arr, MIN = -1., MAX = 1., INTER=0.1, STYLE='so0so' $ 28 , small = [1,2,2], COAST_THICK = 2, TITLE = title, boxzoom = [105., 106.], /PORTRAIT, _extra = ex 29 30 endelse 31 30 htmltxt = [ htmltxt, '<hr>'+blabla, '<br><img width="80%" src='+filename+'.png /> ' ] 31 if KEYWORD_SET(postscript) then closeps 32 32 33 34 title = 'Salinity differences at z=105 m with Levitus and '+sEXP2 35 text = [ title, '<img width="80%" src=/Users/sflod/TOOLS/my_IDL/PS/'+sEXP1+'_'+sEXP2+'/ps/013_S_z105_'+sEXP1+'-'+sEXP2+'_y'+start_end+'.png /> ' ] 36 putfile, '/tmp/prova.txt', text ; 37 38 39 if KEYWORD_SET(POSTSCRIPT) then begin 40 closeps 41 endif 42 43 return 33 return 44 34 end
Note: See TracChangeset
for help on using the changeset viewer.