add_cyclic#
- cfplot.add_cyclic(field, lons)[source]#
- A wrapper for cartopy_util.add_cyclic_point(field, lons).This is needed for the case of when the longitudes are not evenly spaceddue to numpy rounding which causes an error from the cartopy wrappingroutine. In this case the longitudes are promoted to 64 bit and thenrounded to an appropriate number of decimal places before passing tothe cartopy add_cyclic routine.