Intake esm
ElasticsearchConf
Bases: BaseModel
IntakeESM config model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Elasticsearch index to post to. |
required |
namespace
|
str
|
Elasticsearch index to post to. |
'asset'
|
collection
|
str
|
Term to use for the JSON file name. |
'collection'
|
description
|
str
|
Term to use for the JSON file name. |
''
|
Source code in stac_generator/plugins/outputs/intake_esm.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | |
IntakeESMOutput
Bases: Output
Outputs to a Intake ESM catalog description and a zipped CSV file at a location of your choosing.
This is only to be used for testing purposes and not suitable for large scale application.
Note also that the CSV header is constructed from the first data payload processed. If there are attribute variations across files, attribute columns may not align, which will yield an invalid catalog.
Plugin name: intake_esm_out
Example Configuration
.. code-block:: yaml
- name: intake_esm_out
conf:
filepath: location/to/destination_files/
collection: my_collection
description: A long form description of the dataset catalog.
Source code in stac_generator/plugins/outputs/intake_esm.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
data2row(data)
staticmethod
Return list of property values.
Source code in stac_generator/plugins/outputs/intake_esm.py
79 80 81 82 | |
export(data, **kwargs)
Write data to disk.
Source code in stac_generator/plugins/outputs/intake_esm.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
properties(data)
staticmethod
Return list of property names.
Note that results may vary from one item to the next.
Source code in stac_generator/plugins/outputs/intake_esm.py
71 72 73 74 75 76 77 | |
to_intake_spec(data)
Return Intake specification file content.
Source code in stac_generator/plugins/outputs/intake_esm.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |