-
Notifications
You must be signed in to change notification settings - Fork 6
/
volseries.ncl
77 lines (61 loc) · 2.2 KB
/
volseries.ncl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
load "$NCARG_ROOT/lib/ncarg/nclex/gsun/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
begin
; Create new varible to save volcanic data
volc_global = new((/24000/), double, "No_FillValue")
volc_north = new((/24000/), double, "No_FillValue")
volc_south = new((/24000/), double, "No_FillValue")
; Open volcanic file
v = addfile("/gpfsES/geo/zywang/Rec_Obs_For_DATA/forcings/volc/IVI2.5_Gao_Sigl_1-2000.nc", "r")
; volc(time=24002, lev=18, lat=64)
volc = v->MMRVOLC
time = v->time
lat = v->lat
; Create temp
temp_latdata = new((/64/), double, "No_FillValue")
; Get the series
do i = 0, 23999
do j = 0, 63
temp_latdata(j) = avg(volc(i, :, j))
end do
volc_global(i) = avg(temp_latdata(:))
volc_south(i) = avg(temp_latdata(0:31))
volc_north(i) = avg(temp_latdata(32:63))
end do
; Draw global series
wks = gsn_open_wks("png","/gpfsES/geo/the/MocArchieve/Volc_Global_Series")
res = True
res@tiMainString = "Global"
res@tiYAxisString = "Volcanic Aerosol Mass Mixing Ratio"
res@tiXAxisString = "Year"
res@trYMinF = 0
res@trYMaxF = 0.0000001
res@xyLineColors = "red"
res@vpHeightF = 0.43
res@vpWidthF = 0.70
plot = gsn_xy(wks, time(0:23999), volc_global, res)
; Draw north series
wks = gsn_open_wks("png","/gpfsES/geo/the/MocArchieve/Volc_North_Series")
res = True
res@tiMainString = "Northern Hemisphere"
res@tiYAxisString = "Volcanic Aerosol Mass Mixing Ratio"
res@tiXAxisString = "Year"
res@trYMinF = 0
res@trYMaxF = 0.0000001
res@xyLineColors = "black"
res@vpHeightF = 0.43
res@vpWidthF = 0.70
plot = gsn_xy(wks, time(0:23999), volc_north, res)
; Draw south series
wks = gsn_open_wks("png","/gpfsES/geo/the/MocArchieve/Volc_South_Series")
res = True
res@tiMainString = "Southern Hemisphere"
res@tiYAxisString = "Volcanic Aerosol Mass Mixing Ratio"
res@tiXAxisString = "Year"
res@trYMinF = 0
res@trYMaxF = 0.0000001
res@xyLineColors = "blue"
res@vpHeightF = 0.43
res@vpWidthF = 0.70
plot = gsn_xy(wks, time(0:23999), volc_south, res)
end