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

old code issues with panel plots #2148

Open
angshuiisc opened this issue Jan 5, 2017 · 2 comments
Open

old code issues with panel plots #2148

angshuiisc opened this issue Jan 5, 2017 · 2 comments

Comments

@angshuiisc
Copy link

I am trying to plot a 4 panel figure. I am using my old code which used to work fine is now `

showing` following error :


Successfully updated your environment to use UVCDAT
(changes are valid for this session/terminal only)
Version: 2.4.1
Location: /usr/local/uvcdat/2.4.1
Reset these changes by running: source /usr/local/uvcdat/2.4.1/bin/reset_runtime.sh
0 2
Traceback (most recent call last):
File "strat_cooling_4panel.py", line 289, in
plot_4(plots, grids,titles,outname,k)
File "strat_cooling_4panel.py", line 213, in plot_4
x.plot(plots[i],tmpl,meshobj,continents=0,yrev = 1)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/Canvas.py", line 2404, in plot
a = self.__plot(arglist, keyargs)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/Canvas.py", line 3726, in __plot
returned_kargs = self.backend.plot(*arglist, **keyargs)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/VTKPlots.py", line 605, in plot
vtk_backend_grid, vtk_backend_geo, **kargs))
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/vcsvtk/pipeline2d.py", line 303, in plot
self._plotInternal()
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/vcsvtk/isofillpipeline.py", line 253, in _plotInternal
dataset_bounds=self._vtkDataSetBounds)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/VTKPlots.py", line 760, in plotContinents
contData = vcs2vtk.prepContinents(self.canvas._continentspath())
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/vcs2vtk.py", line 555, in prepContinents
f = open(fnm)
TypeError: coercing to Unicode: need string or buffer, NoneType found


@doutriaux1
Copy link
Contributor

doutriaux1 commented Jan 5, 2017 via email

@angshuiisc
Copy link
Author

Hi,
cdms2.open(str(filename)) is not helping. i am getting the same error.

I have attached the code (in .zip)
four_panel.py.zip

Thanks

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

No branches or pull requests

2 participants