diff options
Diffstat (limited to 'docs/plot/plot.py')
| -rw-r--r-- | docs/plot/plot.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/plot/plot.py b/docs/plot/plot.py index a4f330f6..ec263fe4 100644 --- a/docs/plot/plot.py +++ b/docs/plot/plot.py @@ -248,7 +248,11 @@ def plotproj(plotdef, data, outdir): (plotdef['lonmax'], plotdef['latmax']), (plotdef['lonmax'], plotdef['latmin']), ]) - temp_pol = temp_pol.intersection(box) + try: + temp_pol = temp_pol.intersection(box) + except Exception as e: + continue + if plotdef['type'] == 'poly': if isinstance(temp_pol, MultiPolygon): |
