Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in some case the continents are not plotted properly (polar proj with north pole) #1020

Closed
doutriaux1 opened this issue Feb 9, 2015 · 0 comments · Fixed by #1022
Closed
Assignees
Milestone

Comments

@doutriaux1
Copy link
Contributor

f = cdms2.open(sys.prefix+"/sample_data/clt.nc")

# Get the variable
#s = f("TREFHT",latitude=(90,0))
s=f("clt",latitude=(90,30))

# Initialize a canvas
x = vcs.init()  
# Create and initilize an isofill
iso = x.createisofill()

# Draw the extension arrows on either side of the color legend
iso.ext_1 = "y"
iso.ext_2 = "y"
iso.datawc_y1=90
iso.datawc_y2=30
# Set the fill colors to the ones we retrieved earlier
p=x.createprojection()
p.type=-3
iso.projection=p

# Plot the cfsr variable from lat 25 to lat 75.6, and from lon 25 to lon 85 using the isofill defined above
x.plot(s, iso)

currently this produces
plot_anomaly

where it should really produce
plot_anomaly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant