+
    Ai7                     d    R R.t ^ RIHt  ^ RIHt R tRR ltR tR#   ] d
    ]! R4      hi ; i)	imreadimread_collectionN)fitszAstropy could not be found. It is needed to read FITS files.
Please refer to https://www.astropy.org for installation
instructions.c                N   \         P                  ! V 4      ;_uu_ 4       pRpV Fa  p\        V\         P                  4      '       g#   \        V\         P                  4      '       g   KE  VP
                  f   KU  VP
                  p M	  RRR4       V#   + '       g   i     X# ; i)a  Load an image from a FITS file.

Parameters
----------
fname : string
    Image file name, e.g. ``test.fits``.

Returns
-------
img_array : ndarray
    Unlike plugins such as PIL, where different color bands/channels are
    stored in the third dimension, FITS images are grayscale-only and can
    be N-dimensional, so an array of the native FITS dimensionality is
    returned, without color channels.

    Currently if no image is found in the file, None will be returned

Notes
-----
Currently FITS ``imread()`` always returns the first image extension when
given a Multi-Extension FITS file; use ``imread_collection()`` (which does
lazy loading) to get all the extensions at once.

N)r   open
isinstanceImageHDU
PrimaryHDUdata)fnamehdulist	img_arrayhdus   &   ]/var/www/html/photoedit/myenv/lib/python3.14/site-packages/skimage/io/_plugins/fits_plugin.pyr   r      s{    4 
5		W 	C#t}}--C1Q1Q88' #I	 	 
  
	 s   AB)B9BB$	c           
        \        V 4      pV\        Jd   V\        Jd   \        R4      hV\        Jd   V .p . pV  F  p\        P
                  ! V4      ;_uu_ 4       p\        \        \        V4      4      V4       Fo  w  rg\        V\        P                  4      '       g#   \        V\        P                  4      '       g   KG   VP                  pV^ 8  g   K]  VP                  WF34       Kq  	  RRR4       K  	  \        P                  ! V\         VR7      #   \         d    TP                  4       p Lei ; i  + '       g   i     EK  ; i)a  Load a collection of images from one or more FITS files

Parameters
----------
load_pattern : str or list
    List of extensions to load. Filename globbing is currently
    unsupported.
conserve_memory : bool
    If True, never keep more than one in memory at a specific
    time. Otherwise, images will be cached once they are loaded.

Returns
-------
ic : ImageCollection
    Collection of images.

z-Input must be a filename or list of filenamesN)	load_funcconserve_memory)typeliststr	TypeErrorr   r   ziprangelenr   r   r	   sizeappendioImageCollectionFITSFactory)	load_patternr   intypeext_listfilenamer   nr   	data_sizes	   &&       r   r   r   6   s
   & ,FTfC/GHH T$~ H YYx  GeCL17;c4==11ZT__5U5U/$'HH	 !1} 6 < !  ! K  % /$'HHJ	/ !  s7   A!D9DD9D9D63D95D66D99Ec                   \        V \        4      '       g   \        R4      h\        V 4      ^8w  d   \	        R4      hV ^ ,          pV ^,          p\        V\
        4      '       d   \        V\        4      '       g   \	        R4      h\        P                  ! V4      ;_uu_ 4       pW2,          P                  pRRR4       Xf   \        RV RV R24      hV#   + '       g   i     L(; i)a  Load an image extension from a FITS file and return a NumPy array

Parameters
----------
image_ext : tuple
    FITS extension to load, in the format ``(filename, ext_num)``.
    The FITS ``(extname, extver)`` format is unsupported, since this
    function is not called directly by the user and
    ``imread_collection()`` does the work of figuring out which
    extensions need loading.

zExpected a tuplezExpected a tuple of length 2z&Expected a (filename, extension) tupleNz
Extension z of z has no data)r   tupler   r   
ValueErrorr   intr   r   r
   RuntimeError)	image_extr"   extnumr   r
   s   &    r   r   r   f   s     i''*++
9~788|Hq\Fx%%*VS*A*AABB	8		## 
 |ZxtH:\JKKK 
	s   $CC'	)T)	__all__
skimage.ior   
astropy.ior   ImportErrorr   r   r        r   <module>r2      sP   (
) $N-`!  
	 s    /