-
Notifications
You must be signed in to change notification settings - Fork 13
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
iso plot failure #73
Comments
@danlipsa @doutriaux1 this is still an issue in (uvcdat280nox) duro@ocean:[~]:[3227]> ipython
Python 2.7.12 | packaged by conda-forge | (default, Sep 8 2016, 14:22:31)
Type "copyright", "credits" or "license" for more information.
IPython 5.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: inPath = '/work/duro/Shared/model_data/140220_AusCOM1-0/'
In [2]: inFile = 'AusCOM1-0.Salt.Omon.so.00011231-00501231.nc'
In [3]: import os, vcs
In [4]: import cdms2 as cdm
In [5]: f_h = cdm.open(os.path.join(inPath,inFile))
In [6]: so = f_h('so')
In [8]: so.shape
Out[8]: (50, 50, 300, 360)
In [9]: so1 = so[0:1,]
In [10]: so1.shape
Out[10]: (1, 50, 300, 360)
In [12]: x = vcs.init()
In [13]: iso = x.createisofill()
In [14]: x.plot(so1,iso)
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-14-36400289d49d> in <module>()
----> 1 x.plot(so1,iso)
/export/duro/anaconda2/envs/uvcdat280nox/lib/python2.7/site-packages/vcs/Canvas.pyc in plot(self, *actual_args, **keyargs)
2562
2563 # Plot the data
-> 2564 a = self.__plot(arglist, keyargs)
2565
2566 if "continents_line" in keyargs:
/export/duro/anaconda2/envs/uvcdat280nox/lib/python2.7/site-packages/vcs/Canvas.pyc in __plot(self, arglist, keyargs)
2757 arglist[3] not in ["meshfill", ]:
2758 raise RuntimeError("You are attempting to plot unstructured grid" +
-> 2759 "with a method that is not meshfill")
2760 # preprocessing for extra keyword (at-plotting-time options)
2761 cmds = {}
RuntimeError: You are attempting to plot unstructured gridwith a method that is not meshfill |
@doutriaux1 I can put it on my list @durack1 Can I have the nc file? |
@danlipsa here's a single timeslice |
23 tasks
@scottwittenburg @danlipsa it would be nice to be able to plot unstructured grids in isofill, since we have the cell points. |
This is about generating a mesh (using triangulation) when we only have points. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@doutriaux1 as discussed:
Migrated from: CDAT/cdat#1594
The text was updated successfully, but these errors were encountered: