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: A mapping of attribute names and values.
  
  Returns
  -------
  dict
docstr_tok: ["A","mapping","of","attribute","names","and","values",".","Returns","--","--","--","-","dict"]
code: def todict(self):
      """A mapping of attribute names and values.
  
      Returns
      -------
      dict
      """
      return collections.OrderedDict(
          col_off=self.col_off,
          row_off=self.row_off,
          width=self.width,
          height=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 3 for calling the Window obj's underlying member method code with example usage: obj.todict() and returns: collections