rompy.core.source.SourceIntake#
- pydantic model rompy.core.source.SourceIntake[source]#
Source dataset from intake catalog.
Note
The intake catalog can be prescribed either by the URI of an existing catalog file or by a YAML string defining the catalog. The YAML string can be obtained from calling the yaml() method on an intake dataset instance.
Show JSON schema
{ "title": "SourceIntake", "description": "Source dataset from intake catalog.\n\nnote\n----\nThe intake catalog can be prescribed either by the URI of an existing catalog file\nor by a YAML string defining the catalog. The YAML string can be obtained from\ncalling the `yaml()` method on an intake dataset instance.", "type": "object", "properties": { "model_type": { "const": "intake", "default": "intake", "description": "Model type discriminator", "title": "Model Type", "type": "string" }, "dataset_id": { "description": "The id of the dataset to read in the catalog", "title": "Dataset Id", "type": "string" }, "catalog_uri": { "anyOf": [ { "type": "string" }, { "format": "path", "type": "string" }, { "type": "null" } ], "default": null, "description": "The URI of the catalog to read from", "title": "Catalog Uri" }, "catalog_yaml": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The YAML string of the catalog to read from", "title": "Catalog Yaml" }, "kwargs": { "additionalProperties": true, "default": {}, "description": "Keyword arguments to define intake dataset parameters", "title": "Kwargs", "type": "object" } }, "additionalProperties": false, "required": [ "dataset_id" ] }
- Fields:
- Validators:
check_catalog
»all fields
- field catalog_uri: str | Path | None = None#
The URI of the catalog to read from
- Validated by:
- field catalog_yaml: str | None = None#
The YAML string of the catalog to read from
- Validated by:
- field dataset_id: str [Required]#
The id of the dataset to read in the catalog
- Validated by:
- field kwargs: dict = {}#
Keyword arguments to define intake dataset parameters
- Validated by:
- field model_type: Literal['intake'] = 'intake'#
Model type discriminator
- Validated by:
- property catalog: Catalog#
The intake catalog instance.