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

Error on meshfill #1245

Closed
chaosphere2112 opened this issue Apr 29, 2015 · 0 comments
Closed

Error on meshfill #1245

chaosphere2112 opened this issue Apr 29, 2015 · 0 comments
Assignees
Milestone

Comments

@chaosphere2112
Copy link
Contributor

Hey all; clean build on release branch, all tests pass. Ran into this issue:

import vcs, cdms2, os
x = vcs.init()
f = cdms2.open(os.path.join(vcs.prefix, "sample_data", "clt.nc"))
s = f("clt")
x.meshfill(s)

barfs out this:

----> 1 x.meshfill(s)

/Users/fries2/bin/uvcdat/2.2-rc1/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vcs/Canvas.pyc in meshfill(self, *args, **parms)
   1490 """
   1491         arglist=_determine_arg_list('meshfill',args)
-> 1492         return self.__plot(arglist, parms)
   1493 
   1494     #############################################################################

/Users/fries2/bin/uvcdat/2.2-rc1/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vcs/Canvas.pyc in __plot(self, arglist, keyargs)
   2730                     ys=arglist[0].getAxis(-2)
   2731                     if xs.isLongitude() and ys.isLatitude() and isinstance(inGrid,cdms2.grid.TransientRectGrid):
-> 2732                         arglist[1]=MV2.array(g.getMesh())
   2733                         if not 'wrap' in keyargs.keys():
   2734                             keyargs['wrap']=[0.,360.]

UnboundLocalError: local variable 'g' referenced before assignment

@doutriaux1 I'm assigning to you.

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

No branches or pull requests

2 participants