Skip to content

Add Input class methods to create OTB image objects from_<data>

This could be a nice way to use Input and create python / OTB compatible blocks easily.
One example in core : we could use this in OTBObject.__array_ufunc__

Some ideas :

  • Input.from_numpy (OTB export)
  • Input.from_rasterio (with profile)
  • Input.from_xarray (see #64 )
  • Input.from_stac (see #41 (closed) )

Following the same logic, for apps :

  • App.from_json / App.from_yaml / App.from_xml ? (serialized apps)
Edited by Cresson Remi