[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[python #BOE-405905]: Wind Barbs on a Map
- Subject: [python #BOE-405905]: Wind Barbs on a Map
- Date: Tue, 08 Aug 2017 15:58:33 -0600
Cidny,
Let's start by getting to the list. You can subscribe by sending a message to:
address@hidden
From there you can send your problem and see what we can do.
Ryan
> Hello,
>
>
> Yes by all means if there is any way the problems I'm having can help anyone
> else or if anyone else can help me that would be great.
>
>
> I am attaching the file that I am using for the plots. Though it is not all
> the data that I need, I am hoping that by just figuring things out with this
> bit and then adding the rest of the data later will work.
>
>
> I'm not sure if the error was legible on the previous email that I sent so I
> am pasting in in the email again.
>
>
> Should I also include the code that I wrote?
>
>
>
> Thank you so much for helping with this
>
>
> RuntimeErrorTraceback (most recent call last)
> /linuxapps/anaconda/lib/python2.7/site-packages/IPython/core/formatters.pyc
> in __call__(self, obj)
> 305 pass
> 306 else:
> --> 307 return printer(obj)
> 308 # Finally look for special method names
> 309 method = get_real_method(obj, self.print_method)
>
> /linuxapps/anaconda/lib/python2.7/site-packages/IPython/core/pylabtools.pyc
> in <lambda>(fig)
> 225
> 226 if 'png' in formats:
> --> 227 png_formatter.for_type(Figure, lambda fig: print_figure(fig,
> 'png', **kwargs))
> 228 if 'retina' in formats or 'png2x' in formats:
> 229 png_formatter.for_type(Figure, lambda fig: retina_figure(fig,
> **kwargs))
>
> /linuxapps/anaconda/lib/python2.7/site-packages/IPython/core/pylabtools.pyc
> in print_figure(fig, fmt, bbox_inches, **kwargs)
> 117
> 118 bytes_io = BytesIO()
> --> 119 fig.canvas.print_figure(bytes_io, **kw)
> 120 data = bytes_io.getvalue()
> 121 if fmt == 'svg':
>
> /linuxapps/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.pyc
> in print_figure(self, filename, dpi, facecolor, edgecolor, orientation,
> format, **kwargs)
> 2178 orientation=orientation,
> 2179 dryrun=True,
> -> 2180 **kwargs)
> 2181 renderer = self.figure._cachedRenderer
> 2182 bbox_inches = self.figure.get_tightbbox(renderer)
>
> /linuxapps/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_agg.pyc
> in print_png(self, filename_or_obj, *args, **kwargs)
> 525
> 526 def print_png(self, filename_or_obj, *args, **kwargs):
> --> 527 FigureCanvasAgg.draw(self)
> 528 renderer = self.get_renderer()
> 529 original_dpi = renderer.dpi
>
> /linuxapps/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_agg.pyc
> in draw(self)
> 472
> 473 try:
> --> 474 self.figure.draw(self.renderer)
> 475 finally:
> 476 RendererAgg.lock.release()
>
> /linuxapps/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in
> draw_wrapper(artist, renderer, *args, **kwargs)
> 59 def draw_wrapper(artist, renderer, *args, **kwargs):
> 60 before(artist, renderer)
> ---> 61 draw(artist, renderer, *args, **kwargs)
> 62 after(artist, renderer)
> 63
>
> /linuxapps/anaconda/lib/python2.7/site-packages/matplotlib/figure.pyc in
> draw(self, renderer)
> 1157 dsu.sort(key=itemgetter(0))
> 1158 for zorder, a, func, args in dsu:
> -> 1159 func(*args)
> 1160
> 1161 renderer.close_group('figure')
>
> /linuxapps/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in
> draw_wrapper(artist, renderer, *args, **kwargs)
> 59 def draw_wrapper(artist, renderer, *args, **kwargs):
> 60 before(artist, renderer)
> ---> 61 draw(artist, renderer, *args, **kwargs)
> 62 after(artist, renderer)
> 63
>
> /linuxapps/anaconda/lib/python2.7/site-packages/cartopy/mpl/geoaxes.pyc in
> draw(self, renderer, inframe)
> 358
> 359 return matplotlib.axes.Axes.draw(self, renderer=renderer,
> --> 360 inframe=inframe)
> 361
> 362 def __str__(self):
>
> /linuxapps/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in
> draw_wrapper(artist, renderer, *args, **kwargs)
> 59 def draw_wrapper(artist, renderer, *args, **kwargs):
> 60 before(artist, renderer)
> ---> 61 draw(artist, renderer, *args, **kwargs)
> 62 after(artist, renderer)
> 63
>
> /linuxapps/anaconda/lib/python2.7/site-packages/matplotlib/axes/_base.pyc in
> draw(self, renderer, inframe)
> 2322
> 2323 for zorder, a in dsu:
> -> 2324 a.draw(renderer)
> 2325
> 2326 renderer.close_group('axes')
>
> /linuxapps/anaconda/lib/python2.7/site-packages/matplotlib/artist.pyc in
> draw_wrapper(artist, renderer, *args, **kwargs)
> 59 def draw_wrapper(artist, renderer, *args, **kwargs):
> 60 before(artist, renderer)
> ---> 61 draw(artist, renderer, *args, **kwargs)
> 62 after(artist, renderer)
> 63
>
> /linuxapps/anaconda/lib/python2.7/site-packages/cartopy/mpl/feature_artist.pyc
> in draw(self, renderer, *args, **kwargs)
> 158 if ax.projection != feature_crs:
> 159 projected_geom = ax.projection.project_geometry(
> --> 160 geom, feature_crs)
> 161 else:
> 162 projected_geom = geom
>
> /linuxapps/anaconda/lib/python2.7/site-packages/cartopy/crs.pyc in
> project_geometry(self, geometry, src_crs)
> 173 raise ValueError('Unsupported geometry '
> 174 'type {!r}'.format(geom_type))
> --> 175 return getattr(self, method_name)(geometry, src_crs)
> 176
> 177 def _project_point(self, point, src_crs):
>
> /linuxapps/anaconda/lib/python2.7/site-packages/cartopy/crs.pyc in
> _project_multipolygon(self, geometry, src_crs)
> 289 geoms = []
> 290 for geom in geometry.geoms:
> --> 291 r = self._project_polygon(geom, src_crs)
> 292 if r:
> 293 geoms.extend(r.geoms)
>
> /linuxapps/anaconda/lib/python2.7/site-packages/cartopy/crs.pyc in
> _project_polygon(self, polygon, src_crs)
> 324 # Convert any lines to rings by attaching them to the boundary.
> 325 if multi_lines:
> --> 326 rings.extend(self._attach_lines_to_boundary(multi_lines,
> is_ccw))
> 327
> 328 # Resolve all the inside vs. outside rings, and convert to the
>
> /linuxapps/anaconda/lib/python2.7/site-packages/cartopy/crs.pyc in
> _attach_lines_to_boundary(self, multi_line_strings, is_ccw)
> 506 if debug_plot_edges:
> 507 plt.show()
> --> 508 raise RuntimeError('Unidentified problem with
> '
> 509 'geometry, linestring being '
> 510 're-added. Please raise an
> issue.')
>
> RuntimeError: Unidentified problem with geometry, linestring being re-added.
> Please raise an issue.
>
>
>
> <matplotlib.figure.Figure at 0x7faa12dee650>
>
>
>
> Cidny A. Ramirez
> address@hidden
> ________________________________
> From: Unidata Python Support <address@hidden>
> Sent: Friday, August 4, 2017 1:30:06 PM
> To: Ramirez, Cidny
> Cc: address@hidden
> Subject: [python #BOE-405905]: Wind Barbs on a Map
>
> Cidny,
>
> Can you send me the data file so I can try to reproduce the problem locally?
>
> Also, would you be willing to take this discussion over to our address@hidden
> list so that the rest of the community can benefit from the discussion, and
> hopefully chime in with suggestions?
>
> Ryan
>
> > Good morning,
> >
> >
> > I am trying to get a map overlaid with wind barbs, and I've gotten a code
> > (on Jupyter) that works until the end where I try to display the actual
> > plot:
> >
> >
> > I'm not sure where to go from here.
> > Thank you in advance!
>
>
> Ticket Details
> ===================
> Ticket ID: BOE-405905
> Department: Support Python
> Priority: Low
> Status: Closed
> ===================
> NOTE: All email exchanges with Unidata User Support are recorded in the
> Unidata inquiry tracking system and then made publicly available through the
> web. If you do not want to have your interactions made available in this
> way, you must let us know in each email you send to us.
>
>
>
>
Ticket Details
===================
Ticket ID: BOE-405905
Department: Support Python
Priority: Low
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.