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 cropped to height and width
docstr_tok: ["Return","a","copy","cropped","to","height","and","width"]
code: def crop(self, height, width):
      """Return a copy cropped to height and width"""
      return crop(self, height, width)
  
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 10 for calling the Window obj's underlying member method code with example usage: obj.crop(height, width) and returns: crop