Kyle Penner
Kyle Penner
I'm unsure---I made the example from a much larger script I inherited. I'll take a look.
Yes, the loop is avoidable, but to me it seems like a short-term solution (with the caveat that I know nothing about the internal workings of netCDF).
I'm following the discussion on the C side. Tomorrow I'll test with a few other files.
I tested 3 other files. The test runs equally well between libs for `woa18_decav_t01_01.nc` from: [https://data.nodc.noaa.gov/thredds/catalog/ncei/woa/temperature/decav/1.00/catalog.html?dataset=ncei/woa/temperature/decav/1.00/woa18_decav_t01_01.nc](https://data.nodc.noaa.gov/thredds/catalog/ncei/woa/temperature/decav/1.00/catalog.html?dataset=ncei/woa/temperature/decav/1.00/woa18_decav_t01_01.nc) There's a difference for `woa18_decav_t05_04.nc` from: [https://data.nodc.noaa.gov/thredds/catalog/ncei/woa/temperature/decav/0.25/catalog.html?dataset=ncei/woa/temperature/decav/0.25/woa18_decav_t05_04.nc](https://data.nodc.noaa.gov/thredds/catalog/ncei/woa/temperature/decav/0.25/catalog.html?dataset=ncei/woa/temperature/decav/0.25/woa18_decav_t05_04.nc) There's no difference for the gmt4 file...
Note to self just discovered inversion of coastlines in middle plots of bottom 2 rows Edit: they're weren't inverted---they weren't added to the dictionary
@dopplershift you're welcome. I hope to have a final version in a month or so. (Depends on my other work.) Will present a benchmark then.
Ready for review. I'll have an update with benchmarks in a few days.
Also: much of this feels like a treatment of symptoms and not the illness. My guess is that there are flaws in `_attach_lines_to_boundary` and `_project_linear_ring` and maybe `project_linear`, but in...
A simple benchmark script: ```python import timeit import cartopy.crs as ccrs import cartopy.feature as cfeature import matplotlib.pyplot as plt def tmerc(): fig = plt.figure() proj = ccrs.TransverseMercator(central_longitude=18.14159, approx=False) ax =...