+
    ?i                     6    R t ^RIHt RsR t ! R R]4      tR# )a  Read FITS files.

Backend Library: `Astropy <https://www.astropy.org/>`_

.. note::
    To use this plugin you have to install its backend::

        pip install imageio[fits]

Flexible Image Transport System (FITS) is an open standard defining a
digital file format useful for storage, transmission and processing of
scientific and other images. FITS is the most commonly used digital
file format in astronomy.


Parameters
----------
cache : bool
    If the file name is a URL, `~astropy.utils.data.download_file` is used
    to open the file.  This specifies whether or not to save the file
    locally in Astropy's download cache (default: `True`).
uint : bool
    Interpret signed integer data where ``BZERO`` is the
    central value and ``BSCALE == 1`` as unsigned integer
    data.  For example, ``int16`` data with ``BZERO = 32768``
    and ``BSCALE = 1`` would be treated as ``uint16`` data.

    Note, for backward compatibility, the kwarg **uint16** may
    be used instead.  The kwarg was renamed when support was
    added for integers of any size.
ignore_missing_end : bool
    Do not issue an exception when opening a file that is
    missing an ``END`` card in the last header.
checksum : bool or str
    If `True`, verifies that both ``DATASUM`` and
    ``CHECKSUM`` card values (when present in the HDU header)
    match the header and data of all HDU's in the file.  Updates to a
    file that already has a checksum will preserve and update the
    existing checksums unless this argument is given a value of
    'remove', in which case the CHECKSUM and DATASUM values are not
    checked, and are removed when saving changes to the file.
disable_image_compression : bool, optional
    If `True`, treats compressed image HDU's like normal
    binary table HDU's.
do_not_scale_image_data : bool
    If `True`, image data is not scaled using BSCALE/BZERO values
    when read.
ignore_blank : bool
    If `True`, the BLANK keyword is ignored if present.
scale_back : bool
    If `True`, when saving changes to a file that contained scaled
    image data, restore the data to the original type and reapply the
    original BSCALE/BZERO values.  This could lead to loss of accuracy
    if scaling back to integer values after performing floating point
    operations on the data.

)FormatNc                  P     ^ RI Hs \        #   \         d    \        R4      hi ; i)    )fitszoThe FITS format relies on the astropy package.Please refer to http://www.astropy.org/ for further instructions.)
astropy.ior   _fitsImportError     R/var/www/html/photoedit/myenv/lib/python3.14/site-packages/imageio/plugins/fits.pyload_libr   C   s4    
, L  
(
 	

s    %c                   Z   a  ] tR t^Pt o RtR tR t ! R R]P                  4      tRt	V t
R# )
FitsFormatzSee :mod:`imageio.plugins.fits`c                4    VP                   V P                  9   # N)	extension
extensionsselfrequests   &&r   	_can_readFitsFormat._can_readS   s       DOO33r
   c                    R # Fr	   r   s   &&r   
_can_writeFitsFormat._can_writeX   s    r
   c                   B   a  ] tR t^^t o RR ltR tR tR tR tRt	V t
R# )	FitsFormat.Readerc                   \         '       g   \        4        \         P                  ! V P                  P	                  4       3R V/VB p. V n        \         P                  \         P                  \         P                  3p\        \        \        V4      4      V4       FF  w  rV\        Wd4      '       g   K  VP                  ^ 8  g   K+  V P
                  P                  V4       KH  	  W0n        R# )cacheN)r   r   openr   get_file_indexImageHDU
PrimaryHDUCompImageHDUziprangelen
isinstancesizeappend_hdulist)r   r   kwargshdulistallowed_hdu_typesnhdus   &&,    r   _openFitsFormat.Reader._open_   s    5
jj!6!6!8PPPGDK!&1A1A5CUCU VeCL17;c55 xx!|**1- < $Mr
   c                :    V P                   P                  4        R # r   )r,   closer   s   &r   _closeFitsFormat.Reader._closen   s    MM!r
   c                ,    \        V P                  4      # r   )r(   r"   r6   s   &r   _get_lengthFitsFormat.Reader._get_lengthq   s    t{{##r
   c                    V^ 8  g   V\        V P                  4      8  d   \        R4      hV P                  V P                  V,          ,          P                  pV/ 3# )r   z*Index out of range while reading from fits)r(   r"   
IndexErrorr,   data)r   indexims   && r   	_get_dataFitsFormat.Reader._get_datat   sK    qyES%55 !MNNt{{51277Br6Mr
   c                    \        R 4      h)z+The fits format does not support meta data.)RuntimeError)r   r?   s   &&r   _get_meta_data FitsFormat.Reader._get_meta_data|   s    LMMr
   )r,   r"   Nr   )__name__
__module____qualname____firstlineno__r2   r7   r:   rA   rE   __static_attributes____classdictcell____classdict__s   @r   Readerr   ^   s%     	$	"	$		N 	Nr
   rO   r	   N)rG   rH   rI   rJ   __doc__r   r   r   rO   rK   rL   rM   s   @r   r   r   P   s*     )4
 N  N  Nr
   r   )rP   corer   r   r   r   r	   r
   r   <module>rR      s(   8t 
.N .Nr
   