Skip to content

Commit 7be7402

Browse files
committed
small section about execute_batch
1 parent b5f3b47 commit 7be7402

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ In this example, we'll compute the enhanced vegetation index (EVI)::
6161
evi_cube.download("out.geotiff",format="GeoTIFF")
6262

6363

64+
Some results take a longer time to compute, in that case, the 'download' method used above may result in a timeout.
65+
To prevent that, it is also possible to use a 'batch' job. An easy way to run a batch job and downloading the result is:
66+
67+
>>> evi_cube.execute_batch("out.geotiff",out_format="GeoTIFF")
68+
69+
This method will wait until the result is generated, which may take quite a long time. Use the batch job API if you want to
70+
manage your jobs directly.
71+
6472
Example: Applying a mask
6573
________________________
6674

0 commit comments

Comments
 (0)