1 | vnx1=np.array([60,22.5,14.4,10,8,7.2,6,5,4.5,4,3.6,3,3,3,2.5,2.5,2.5,2,2,2,2,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.2,1.2,1.2,1.2,1.2,1.2,1.2,1,1,1,1]) |
---|
2 | vnx1=vnx1*10 |
---|
3 | |
---|
4 | [1,2,3,4,5,6,8,9,10,12,15,16,18,20,24,25,30,36, |
---|
5 | 40,45,48,50,60,72,75,80,90,100,120,144,150,180,200,225,240,300,360, |
---|
6 | 400,450,600,720,900,1200,1800,3600] |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | nd_mean16=zeros([ny], float) |
---|
11 | nd_max16=zeros([ny], float) |
---|
12 | nd_min16=zeros([ny], float) |
---|
13 | for i in range(0,ny): |
---|
14 | nd_mean16[i]=mean(tbnngrid_t16[i,:]) |
---|
15 | nd_max16[i]=max(tbnngrid_t16[i,:]) |
---|
16 | nd_min16[i]=min(tbnngrid_t16[i,:]) |
---|
17 | |
---|
18 | plot(nd_min16) |
---|
19 | plt.show() |
---|
20 | |
---|
21 | nd_lat=zeros([ny], float) |
---|
22 | nd_lat=sum(tbngrid_t60) |
---|
23 | |
---|
24 | ########################## |
---|
25 | inlat = (y >= -90) & (y < -88) |
---|
26 | inz = (z >= 100) & (z <= 300) |
---|
27 | innn = inlat & inz |
---|
28 | |
---|
29 | zz = z[innn] |
---|
30 | llat=y[innn] |
---|
31 | llon=x[innn] |
---|
32 | |
---|
33 | plot(llon,llat) |
---|
34 | plt.show() |
---|
35 | |
---|
36 | tt1='point_tb_SSMIS_CH16' |
---|
37 | t1='scatter_point_tb_SSMIS_CH16_centre.png' |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | # on recupere les coordonnes xy de la projection orth standard |
---|
42 | m1 = Basemap(projection='ortho', lat_0 = -90, lon_0 = 0, |
---|
43 | resolution = 'l') |
---|
44 | |
---|
45 | xii, yii = m1(*np.meshgrid(xvec,yvec)) |
---|
46 | width = m1.urcrnrx - m1.llcrnrx |
---|
47 | height = m1.urcrnry - m1.llcrnry |
---|
48 | |
---|
49 | coef = 0.6 |
---|
50 | width = width*coef |
---|
51 | height = height*coef |
---|
52 | |
---|
53 | # on fait une nouvelle projection en zoomant sur l'antarctique |
---|
54 | |
---|
55 | map = Basemap(projection='ortho',lon_0=0,lat_0=-90,resolution='l',\ |
---|
56 | llcrnrx=-0.5*width,llcrnry=-0.5*height,urcrnrx=0.5*width,urcrnry=0.5*height) |
---|
57 | x1,y1=map(llon,llat) |
---|
58 | clevs=arange(100,300,1) |
---|
59 | cs=map.scatter(x1,y1,16,zz,marker="o",cmap=cm.s3pcpn_l_r,vmin=100, vmax=300,alpha=0.7) |
---|
60 | cbar =colorbar(cs) |
---|
61 | plt.title(tt1) |
---|
62 | # draw coastlines, country boundaries, fill continents. |
---|
63 | map.drawcoastlines(linewidth=1) |
---|
64 | # draw the edge of the map projection region (the projection limb) |
---|
65 | map.drawmapboundary() |
---|
66 | # draw lat/lon grid lines every 30 degrees. |
---|
67 | map.drawmeridians(np.arange(0, 360, 1)) |
---|
68 | map.drawparallels(np.arange(-90, 90, 1)) |
---|
69 | #plt.show() |
---|
70 | plt.savefig(t1) |
---|
71 | close() |
---|