Exception on M2 scenes partially off-disk (G18 GND-008 test with Alaska MESO)
A test case for this is available as
espresso:/data/users/rayg/Workspace/crashing-ql-g18-m2-gnd008/go.sh
Douglas S. noted that the aitf-ql was crashing on at least some M2 scenes from GND-008 test case. Example traceback:
Traceback (most recent call last):
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/python/ql/aitf_ql.py", line 925, in <module>
2022-07-07 19:23:01.593 (INFO) : -------------------------------------
sys.exit(main())
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/python/ql/aitf_ql.py", line 788, in main
_plot_winds(temp_path, version_msg, comment_msg, dpi_to_use, inch_dims,
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/python/ql/aitf_ql.py", line 703, in _plot_winds
figure_temp.savefig(os.path.join(output_path, output_file_prefix + os.path.basename(input_file_path)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/matplotlib/figure.py", line 3005, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2255, in print_figure
2022-07-07 19:23:01.594 (INFO) : Plotting quicklooks for file: /data/users/rayg/Workspace/gnd-008-transition/output/output/CG_ABI-L2-CMIPM2-M6C06_G18_s20221651728550_e20221651729013_c20221820748343.nc
result = print_method(
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 1669, in wrapper
return func(*args, **kwargs)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 508, in print_png
FigureCanvasAgg.draw(self)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 406, in draw
self.figure.draw(self.renderer)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/matplotlib/artist.py", line 74, in draw_wrapper
result = draw(artist, renderer, *args, **kwargs)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/matplotlib/figure.py", line 2780, in draw
2022-07-07 19:23:01.600 (INFO) : -------------------------------------
mimage._draw_list_compositing_images(
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/matplotlib/image.py", line 132, in _draw_list_compositing_images
a.draw(renderer)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py", line 465, in draw
gl._draw_gridliner(renderer=renderer)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/cartopy/mpl/gridliner.py", line 515, in _draw_gridliner
line = sgeom.LineString(line)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/shapely/geometry/linestring.py", line 48, in __init__
self._set_coords(coordinates)
File "/home/rayg/opt/cspp-geo-aitf-2.1beta1/lib/ShellB3/lib/python3.8/site-packages/shapely/geometry/linestring.py", line 97, in _set_coords
ret = geos_linestring_from_py(coordinates)
File "shapely/speedups/_speedups.pyx", line 92, in shapely.speedups._speedups.geos_linestring_from_py
ValueError: LineStrings must have at least 2 coordinate tuples
Our hypothesis is that this is grid lines and/or political boundaries having issue when the Meso scene is overlapping the limb. The plots succeed when the unnavigated flag is used.