class_docstr: Windows are rectangular subsets of rasters.
  
  This class abstracts the 2-tuples mentioned in the module docstring
  and adds methods and new constructors.
  
  Attributes
  ----------
  col_off, row_off: float
      The offset for the window.
  width, height: float
      Lengths of the window.
  
  Notes
  -----
  Previously the lengths were called 'num_cols' and 'num_rows' but
  this is a bit confusing in the new float precision world and the
  attributes have been changed. The originals are deprecated.
class_docstr_tok: ["Windows","are","rectangular","subsets","of","rasters",".","This","class","abstracts","the","2-tuples","mentioned","in","the","module","docstring","and","adds","methods","and","new","constructors",".","Attributes","--","--","--","--","--","col_off",",","row_off",":","float","The","offset","for","the","window",".","width",",","height",":","float","Lengths","of","the","window",".","Notes","--","--","-","Previously","the","lengths","were","called","'num_cols","'","and","'num_rows","'","but","this","is","a","bit","confusing","in","the","new","float","precision","world","and","the","attributes","have","been","changed",".","The","originals","are","deprecated","."]
docstr: Return a copy with column and row offsets rounded.
  
  Offsets are rounded to the preceding whole number. The lengths
  are not changed.
  
  Parameters
  ----------
  kwds : dict
      Collects keyword arguments that are no longer used.
  
  Returns
  -------
  Window
docstr_tok: ["Return","a","copy","with","column","and","row","offsets","rounded",".","Offsets","are","rounded","to","the","preceding","whole","number",".","The","lengths","are","not","changed",".","Parameters","--","--","--","--","--","kwds",":","dict","Collects","keyword","arguments","that","are","no","longer","used",".","Returns","--","--","--","-","Window"]
code: def round_offsets(self, **kwds):
      """Return a copy with column and row offsets rounded.
  
      Offsets are rounded to the preceding whole number. The lengths
      are not changed.
  
      Parameters
      ----------
      kwds : dict
          Collects keyword arguments that are no longer used.
  
      Returns
      -------
      Window
  
      """
      operator = lambda x: int(math.floor(x + 0.001))
      row_off = operator(self.row_off)
      col_off = operator(self.col_off)
      return Window(col_off, row_off, self.width, self.height)
  
imports: import collections
  from collections.abc import Iterable
  import functools
  import math
  import warnings
  from affine import Affine
  import attr
  import numpy
  from rasterio.errors import WindowError, RasterioDeprecationWarning
  from rasterio.transform import rowcol, guard_transform
label_desc: Use image node_id 9 for calling the Window obj's underlying member method code with example usage: obj.round_offsets() and returns: Window