rompy.core.source.SourceFile#

pydantic model rompy.core.source.SourceFile[source]#

Source dataset from file to open with xarray.open_dataset.

Show JSON schema
{
   "title": "SourceFile",
   "description": "Source dataset from file to open with xarray.open_dataset.",
   "type": "object",
   "properties": {
      "model_type": {
         "const": "file",
         "default": "file",
         "description": "Model type discriminator",
         "title": "Model Type",
         "type": "string"
      },
      "uri": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "format": "path",
               "type": "string"
            }
         ],
         "description": "Path to the dataset",
         "title": "Uri"
      },
      "kwargs": {
         "additionalProperties": true,
         "default": {},
         "description": "Keyword arguments to pass to xarray.open_dataset",
         "title": "Kwargs",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "uri"
   ]
}

Fields:
field kwargs: dict = {}#

Keyword arguments to pass to xarray.open_dataset

field model_type: Literal['file'] = 'file'#

Model type discriminator

field uri: str | Path [Required]#

Path to the dataset