:orphan:

.. _GRIB-PIL:

GRIB-PIL GRIB
=============

Extensions: ``.grib``

*This is a copy from the Pillow docs.*


.. versionadded:: Pillow  1.1.5

PIL provides a stub driver for GRIB files.

The driver requires the file to start with a GRIB header. If you have files
with embedded GRIB data, or files with multiple GRIB fields, your application
has to seek to the header before passing the file handle to PIL.

To add read or write support to your application, use
:py:func:`PIL.GribStubImagePlugin.register_handler`.


