source: trunk/src/vnx1.py @ 54

Last change on this file since 54 was 11, checked in by lahlod, 10 years ago

ajout d'un fichier test Laura

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