.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEGetScalarGridFromBytes

.. oe:function:: OEGetScalarGridFromBytes

   .. oe:language:: c++ java csharp

      .. oe:api::

         OEGetScalarGridFromBytes(bytes: bytes, gtype: int) - > OEScalarGrid

   .. oe:language:: python

      .. oe:api:: python

         OEGetScalarGridFromBytes(bytes: bytes, gType: int) -> OEFloatGrid


   Converts bytes to a grid (:ref:`OEScalarGrid <OESystem_OEScalarGrid>`) with the file
   type, ``gtype`` (:oe:constns:`OESystem::OEGridFileType`).

   .. seealso::

      * :oe:func:`OESystem::OEGetGridFileType` function
      * :oe:func:`OESystem::OEGetBytesFromGrid` function
