Ncml
NcMLHeader
Bases: ExtractionMethod
NcML backend for header method.
Method name: ncml
Example configuration
.. code-block:: yaml
- method: ncml inputs: input_term: hello_world
Source code in extraction_methods/plugins/header/backends/ncml.py
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 | |
get_ncml()
Get the NcML file description.
Source code in extraction_methods/plugins/header/backends/ncml.py
67 68 69 70 71 72 73 74 75 | |
get_ncml_from_fs()
Return NcML file description using ncdump utility.
Source code in extraction_methods/plugins/header/backends/ncml.py
94 95 96 97 98 99 100 101 102 103 104 | |
get_ncml_from_thredds()
Read NcML response from THREDDS server.
Returns
bytes NcML content
Source code in extraction_methods/plugins/header/backends/ncml.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
NcMLHeaderInput
Bases: Input
Model for NcML Header Input.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_term
|
str
|
term for method to run on. |
'$uri'
|
request_params
|
dict[str, Any]
|
params for request. |
{'catalog': None, 'dataset': None}
|
namespaces
|
dict[str, str]
|
NcML namespaces. |
{'ncml': 'http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2'}
|
attributes
|
list[KeyOutputKey]
|
attributes to be extracted. |
[]
|
request_timeout
|
int
|
request time out. |
15
|
Source code in extraction_methods/plugins/header/backends/ncml.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |