-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f28ff5d
commit 197a623
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import cdms2 | ||
import vcs | ||
import os | ||
import sys | ||
|
||
|
||
f=cdms2.open(os.path.join(vcs.sample_data,"clt.nc")) | ||
|
||
lon1 = 0. # -180 failks as well | ||
u=f("clt") | ||
v=f("clt") | ||
|
||
u=u(longitude=(lon1,lon1+360.)) | ||
v=v(longitude=(lon1,lon1+360.)) | ||
|
||
x=vcs.init() | ||
Vec = x.createvector() | ||
p = x.createprojection() | ||
p.type = "polar" | ||
Vec.projection = p | ||
x.plot(u,v,Vec) | ||
raw_input("press enter") |