
    !\i                        S r SSKrSSKrSSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  S r\R                  " S	S
9\R                  \R                   \R"                  \R$                  \R&                  \R(                  " S\R*                  " \ V s/ s H   o R,                  S::  d  M  U R.                  PM"     sn 5      SSSS9\R(                  " S\R*                  " \" \5      5      SSSS9\R2                  \R4                  \R6                  \R8                  \R(                  " S\S\SS9\R(                  " SSSS9\R(                  " S\SSS9\R(                  " SSS S9\R<                  \R>                  S! 5       5       5       5       5       5       5       5       5       5       5       5       5       5       5       5       5       5       r gs  sn f )"zThe rio merge CLI command.    N)
Resampling)RasterioDeprecationWarning)options)resolve_inout)MERGE_METHODSc                 @    Ub  [         R                  " S[        5        g )NzKThe --precision option is unused, deprecated, and will be removed in 2.0.0.)warningswarnr   )ctxparamvalues      U/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/rasterio/rio/merge.pydeprecated_precisionr      s    Y&	
     z!Merge a stack of raster datasets.)
short_helpz--resampling   nearestzResampling method.T)typedefaulthelpshow_defaultz--methodfirstzMerging strategy.z--precisionz1Unused, deprecated, and will be removed in 2.0.0.)r   r   callbackr   z2--target-aligned-pixels/--no-target-aligned-pixelsFz0Align the output bounds based on the resolution.)r   r   z--mem-limit@   z4Limit on memory used to perform calculations, in MB.)r   r   r   z!--use-highest-res/--use-first-reszUUse the highest resolution of sources or the resolution of the first source argument.c                     SSK Jn  [        XUS9u  p![        U   nU(       a  UR	                  US9  U R
                  S      U" UUUUU	U
=(       d    SUUUUUUUS9  SSS5        g! , (       d  f       g= f)a  Copy valid pixels from input files to an output file.

All files must have the same number of bands, data type, and
coordinate reference system. Rotated rasters cannot be merged.

Input files are merged in their listed order using the reverse
painter's algorithm. If the output file exists, its values will be
overwritten by input values.

Geospatial bounds and resolution of a new output file in the
units of the input file coordinate reference system may be provided
and are otherwise taken from the first input file.

Note: --res changed from 2 parameters in 0.25.


  --res 0.1 0.1  => --res 0.1 (square)
  --res 0.1 0.2  => --res 0.1 --res 0.2  (rectangular)

r   )merge)filesoutput	overwrite)driverenvN)boundsresnodatadtypeindexes
resamplingmethodtarget_aligned_pixels	mem_limituse_highest_resdst_pathdst_kwds)rasterio.merger   r   r   updateobj)r   r   r   r    r"   r#   r'   r(   r$   r%   bidxr   	precisionr)   r*   r+   creation_options
merge_tools                     r   r   r      s    d 3!i9MF J'Jv.	\T!"7+%	
 
s   A&&
A4)!__doc__r	   clickrasterio.enumsr   rasterio.errorsr   rasterio.rior   rasterio.rio.helpersr   r.   r   r   commandfiles_inout_arg
output_opt
format_opt
bounds_optresolution_optoptionChoicer   namelist
nodata_opt	dtype_optbidx_mult_optoverwrite_optintr3   pass_contextr   )rs   0r   <module>rL      s       % 6   . ( =>n<< LAww!| LM&:! j<<] 34$7! 		!	< 8	;
 		?	 '	`
 	?
      	!	!      ?V?
I !Ms   F?&F?