class_docstr: Array writer that can use slope and intercept to scale array
  
  The writer can subtract an intercept, and divided by a slope, in order to
  be able to convert floating point values into a (u)int range, or to convert
  larger (u)ints to smaller.
  
  It extends the ArrayWriter class with attributes:
  
  * inter
  * slope
  
  and methods:
  
  * reset() - reset inter, slope to default (not adapted to self.array)
  * calc_scale() - calculate inter, slope to best write self.array
class_docstr_tok: ["Array","writer","that","can","use","slope","and","intercept","to","scale","array","The","writer","can","subtract","an","intercept",",","and","divided","by","a","slope",",","in","order","to","be","able","to","convert","floating","point","values","into","a","(","u",")","int","range",",","or","to","convert","larger","(","u",")","ints","to","smaller",".","It","extends","the","ArrayWriter","class","with","attributes",":","*","inter","*","slope","and","methods",":","*","reset","(",")","-","reset","inter",",","slope","to","default","(","not","adapted","to","self.array",")","*","calc_scale","(",")","-","calculate","inter",",","slope","to","best","write","self.array"]
docstr: Write array into `fileobj`
  
  Parameters
  ----------
  fileobj : file-like object
  order : {'F', 'C'}
      order (Fortran or C) to which to write array
docstr_tok: ["Write","array","into","`","fileobj","`","Parameters","--","--","--","--","--","fileobj",":","file-like","object","order",":","{","'","F","'",",","'","C","'","}","order","(","Fortran","or","C",")","to","which","to","write","array"]
code: def to_fileobj(self, fileobj, order="F"):
      """Write array into `fileobj`
  
      Parameters
      ----------
      fileobj : file-like object
      order : {'F', 'C'}
          order (Fortran or C) to which to write array
      """
      mn, mx = self._writing_range()
      array_to_file(
          self._array,
          fileobj,
          self._out_dtype,
          offset=None,
          intercept=self.inter,
          divslope=self.slope,
          mn=mn,
          mx=mx,
          order=order,
          nan2zero=self._needs_nan2zero(),
      )
  
imports: import numpy
  from .casting import best_float, floor_exact, int_abs, shared_range, type_info
  from .volumeutils import array_to_file, finite_range
label_desc: Use image node_id 5 for calling the SlopeInterArrayWriter obj's underlying member method code with example usage: obj.to_fileobj(fileobj, order) without return types