rompy.swan.subcomponents.time.STATIONARY#
- pydantic model rompy.swan.subcomponents.time.STATIONARY[source]#
Stationary time specification.
STATIONARY [time]
Note
The field time is optional to allow for the case where the user wants to set the time dynamically after instantiating this component.
Examples
In [148]: from rompy.swan.subcomponents.time import STATIONARY In [149]: stat = STATIONARY(time="2012-01-01T00:00:00") In [150]: print(stat.render()) STATIONARY time=20120101.000000
Show JSON schema
{ "title": "STATIONARY", "description": "Stationary time specification.\n\n.. code-block:: text\n\n STATIONARY [time]\n\nNote\n----\nThe field `time` is optional to allow for the case where the user wants to set the\ntime dynamically after instantiating this component.\n\nExamples\n--------\n\n.. ipython:: python\n :okwarning:\n\n from rompy.swan.subcomponents.time import STATIONARY\n stat = STATIONARY(time=\"2012-01-01T00:00:00\")\n print(stat.render())", "type": "object", "properties": { "model_type": { "default": "stationary", "description": "Model type discriminator", "enum": [ "stationary", "STATIONARY" ], "title": "Model Type", "type": "string" }, "time": { "default": "1970-01-01T00:00:00", "description": "Stationary time", "format": "date-time", "title": "Time", "type": "string" }, "tfmt": { "anyOf": [ { "enum": [ 1, 2, 3, 4, 5, 6 ], "type": "integer" }, { "type": "string" } ], "default": 1, "description": "Format to render time specification", "title": "Tfmt" } }, "additionalProperties": false }
- Fields:
- field model_type: Literal['stationary', 'STATIONARY'] = 'stationary'#
Model type discriminator
- field tfmt: Literal[1, 2, 3, 4, 5, 6] | str = 1#
Format to render time specification
- field time: datetime = datetime.datetime(1970, 1, 1, 0, 0)#
Stationary time