Skip to content

Commit

Permalink
Add save_cog_with_dask to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill888 committed Oct 17, 2023
1 parent 49ef5a2 commit 9ef1bd1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@ Interfacing with :py:class:`xarray.DataArray` and :py:class:`xarray.Dataset` cla
write_cog
compress

odc.geo.cog
***********

Cloud Optimized GeoTIFF construction

.. currentmodule:: odc.geo.cog
.. autosummary::
:toctree: _api/

save_cog_with_dask
cog_gbox
to_cog
write_cog
write_cog_layers

odc.geo.geobox
**************
Expand Down
18 changes: 18 additions & 0 deletions odc/geo/cog/_tifffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,24 @@ def save_cog_with_dask(
stats: bool | int = True,
**kw,
) -> Any:
"""
Save cloud optimized geotiff to S3 or file.
:param xx: Pixels as :py:class:`xarray.DataArray` backed by Dask
:param dst: S3 url or a file path on shared storage
:param compression: Compression to use, default is ``DEFLATE``
:param level: compression "level", depends on chosen compression
:param predictor: TIFF predictor setting
:param compressionargs: Any other compression arguments
:param overview_resampling: Resampling to use for computing overviews
:param blocksize: Configure blocksizes for main and overview images
:param bigtiff: Generate BigTIFF by default, set to ``False`` to disable
:param aws: Configure AWS write access
:param client: Dask client
:param stats: Set to ``False`` to disable stats computation
:returns: Dask delayed
"""
# pylint: disable=import-outside-toplevel
import dask.bag

Expand Down

0 comments on commit 9ef1bd1

Please sign in to comment.