******* Phan loai cap TC cua JMA: * 2 : Tropical Depression (TD) * 3 : Tropical Storm (TS) * 4 : Severe Tropical Storm (STS) * 5 : Typhoon (TY) * 6 : Extra-tropical Cyclone (L) * 7 : Just entering into the responsible area of Japan Meteorological Agency (JMA) * 8 : Not used * 9 : Tropical Cyclone of TS intensity or higher *********************** "reinit" "set display white"; "c" "set mpdraw on"; "set frame on"; "set grid on";"set xlab on";"set ylab on"; mark.2=0; mark.3=0; mark.4=0; mark.5=0; mark.6=0; mark.7=0; mark.9=0 * colo.2=4; colo.3=10; colo.4=12; colo.5=2; colo.6=1; colo.7=12; colo.9=12 colo.2=5; colo.3=7; colo.4=8; colo.5=6; colo.6=1; colo.7=12; colo.9=12 thic.2=4; thic.3=4; thic.4=4; thic.5=4; thic.6=4; thic.7=4; thic.9=4 styl.2=1; styl.3=1; styl.4=1; styl.5=1; styl.6=1; styl.7=1; styl.9=1; NInt_tc=4 inten.1="2"; inten.2="3"; inten.3="4"; inten.4="5"; inten.5="6"; inten.6="7"; inten.7="9" cdn.1="(TD)"; cdn.2="(TS)"; cdn.3="(STS)"; cdn.4="(TY)" x00=1; x01=10; y00=1; y01=8 * "set vpage "x00" "x01" "y00" "y01 "sdfopen pca_ntc.nc" * "open lsmask.ctl" lat00=5; lat01=25; lon00=100; lon01=140; dlat=lat01-lat00; dlon=lon01-lon00 "set lon "lon00" "lon01; "set lat "lat00" "lat01 * "set map auto"; "draw map" "set ccolor 0"; "set clab off"; "set grads off" "d pc" * "basemap L 7 1 M " "basemap L 15 1 M" * dx=x01-x00; dy=y01-y00 * xscal=dx/dlon; yscal=dy/dlat * Define something needed: 'query gxinfo' rec3 = sublin(result,3) rec4 = sublin(result,4) xlim1 = subwrd(rec3,4) xlim2 = subwrd(rec3,6) ylim1 = subwrd(rec4,4) ylim2 = subwrd(rec4,6) xd = xlim2 - xlim1 yd = ylim2 - ylim1 * say 'xd = 'xd' yd = 'yd * say 'xlim2 = 'xlim2' ylim2 = 'ylim2 'query dims' rec3 = sublin(result,2) rec4 = sublin(result,3) xl1 = subwrd(rec3,6) xl2 = subwrd(rec3,8) if (xl1 < 0) xl1 = xl1 + 360.0 endif if (xl2 < 0) xl2 = xl2 + 360.0 endif yl1 = subwrd(rec4,6) yl2 = subwrd(rec4,8) lonw = xl1 lats = yl1 xld = xl2 - xl1 yld = yl2 - yl1 * say 'xld = 'xld' yld = 'yld * say 'lats = 'lats' lonw = 'lonw * Legend first: x00=1; x01=10; dx=(x01-x00)/NInt_tc y00=0.8; icd=0 While (icd=yy0 & yr<=yy1); say yr" "CD2 "set line "colo.CD2" 1 4" if (x1>xlim1 & x1xlim1 & x2ylim1 & y1xlim1 & x1xlim1 & x2ylim1 & y1