Skip to content

attributes

create_var_attribute_definition

create_var_attribute_definition(
    data_type_code: int = 2,
    type_description: str = "accumulated over the preceding interval",
    dat_type: str = "der",
    dat_type_description: str = "AWAP data interpolated from observations",
    location_type: str = "Point",
)

Create variable attribute definition.

Source code in src/efts_io/attributes.py
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
def create_var_attribute_definition(
    data_type_code: int = 2,
    type_description: str = "accumulated over the preceding interval",
    dat_type: str = "der",
    dat_type_description: str = "AWAP data interpolated from observations",
    location_type: str = "Point",
):
    """Create variable attribute definition."""
    return {
        "type": data_type_code,
        "type_description": type_description,
        "dat_type": dat_type,
        "dat_type_description": dat_type_description,
        "location_type": location_type,
    }