-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflows: docs for catalog upload, consistent longform for catalog o…
…ptions dict, update destination & format docs wording (#7368) GitOrigin-RevId: 95d7f319b78c395da42a086a4a42658ba5da2f03
- Loading branch information
Showing
3 changed files
with
127 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,7 @@ Output Formats | |
|
||
For example, with ``format='geotiff'`` you might use ``destination='[email protected]'`` or ``destination='download'``. Both would produce GeoTIFFs; one would send an email with a link to the file, and the other would download the GeoTIFF within your script. | ||
|
||
.. | ||
TODO: Add "Some output formats must be used with certain destinations. For example, with the Catalog destination you can only use the GeoTIFF format." when we have the Catalog destination | ||
Some output formats are required by certain destinations. For example, with the Catalog destination, you can only use the GeoTIFF format. | ||
|
||
.. contents:: | ||
:local: | ||
|
@@ -29,14 +28,14 @@ If you would like to provide more format options, you pass the format as a dicti | |
>>> two = wf.Int(1) + 1 | ||
>>> two.compute(format={"type": "pyarrow", "compression": "brotli"}) | ||
|
||
Note that when passing the format as a dictionary, it must include a ``type`` key corresponding to the desired format. | ||
Note that when passing the format as a dictionary, it must include a ``type`` key with the format's name. | ||
|
||
The results will be returned differently depending on the ``format`` specified. When using the "pyarrow" format, results will be deserialized and unpacked into :ref:`result-types`. For all other formats, the results will not be deserialized and will be returned as raw bytes. | ||
|
||
Format Options | ||
^^^^^^^^^^^^^^ | ||
Available Formats | ||
^^^^^^^^^^^^^^^^^ | ||
|
||
The following is a list of the available options for each format. The keys in the format dictionary must match the keys listed here. | ||
The following is a list of the available formats and their options. The keys in the format dictionary must match the keys listed here. | ||
|
||
PyArrow | ||
~~~~~~~ | ||
|