Meta configuration specifications

Contents

Meta configuration specifications#

The syntax of all configurations is validated with these specifications, provided by the internal xoa/meta/meta.ini file.

See configobj.

Details#

exclude_names#
default: None
type: strings

Exclude these names from all parsings

[register]#

Registration

name#
default:
type: string
[[attrs]]#

Search within attributes for matching purpose

__many__#
default: None
type: strings
[sglocator]#

Staggered grid localisation

name_format#
default: False
type: boolstr
valid_locations#
default: None
type: strings
[accessors]#

Accessor configuration

[[properties]]#

Shortcut accessor properties

coords#
default: lon, lat, z, depth, sig, level, altitude, time, forecast
type: strings

Coord names that are added as shortcut properties

data_vars#
default: temp, sal, u, v, bathy, ssh
type: strings

Data_var names that are added as shortcut properties

[vertical]#

Vertical coordinate system

positive#
default: None
possible choices: up, down, None
type#
default: None
possible choices: sigma, z, layer, dz, auto, None

Layer=dz, auto=none

[data_vars]#

Data variables

[[__many__]]#

Section names are pivot names

name#
default: None
type: string

Encoding name

alt_names#
default:
type: strings

Alternative names for decoding

cmap#
default: None
type: string

Color map name

inherit#
default: None
type: string
squeeze#
default: None
type: strings
search_order#
default: sn
type: string
loc#
default: None
type: string
add_loc#
default: False
type: boolean
exclude#
default: False
type: boolean
[[[add_coords_loc]]]#
__many__#
default: True
type: boolstr
[[[attrs]]]#
long_name#
default:
type: strings
standard_name#
default:
type: strings
units#
default:
type: strings
[[[select]]]#
__many__#
default: None
type: eval
[coords]#

Coordinates

[[__many__]]#
name#
default: None
type: string
alt_names#
default:
type: strings
inherit#
default: None
type: string
search_order#
default: ns
type: string
loc#
default: None
type: string
add_loc#
default: None
type: boolean
exclude#
default: False
type: boolean
[[[add_coords_loc]]]#
__many__#
default: True
type: boolstr
[[[attrs]]]#
long_name#
default:
type: strings
standard_name#
default:
type: strings
units#
default:
type: strings
axis#
default: None
type: string
[dims]#

Dimensions

x#
default:
type: strings
y#
default:
type: strings
z#
default:
type: strings
t#
default:
type: strings
f#
default:
type: strings

File#

exclude_names=strings(default=None) # Exclude these names from all parsings

[register] # Registration
name=string(default="")

    [[attrs]] # Search within attributes for matching purpose
    __many__=strings(default=None)

[sglocator] # Staggered grid localisation
name_format=boolstr(default=False)
valid_locations=strings(default=None)

[accessors] # Accessor configuration

    [[properties]]  # Shortcut accessor properties
    coords=strings(default=list(lon,lat,z,depth,sig,level,altitude,time,forecast)) # coord names that are added as shortcut properties
    data_vars=strings(default=list(temp,sal,u,v,bathy,ssh))  # data_var names that are added as shortcut properties


[vertical] # Vertical coordinate system
positive=option('up','down',None,default=None)
type=option('sigma','z','layer','dz','auto',None,default=None) # layer=dz, auto=None


[data_vars] # Data variables

    [[__many__]] # Section names are pivot names

    name=string(default=None) # Encoding name
    alt_names=strings(default=list()) # Alternative names for decoding
    cmap=string(default=None) # Color map name
    inherit=string(default=None)
    squeeze=strings(default=None)
    search_order=string(default=sn)
    loc=string(default=None)
    add_loc=boolean(default=False)
    exclude=boolean(default=False)

        [[[add_coords_loc]]]
        __many__=boolstr(default=True)

#        [[[add_loc_sec]]]
#        data_var=boolean(default=False)
#
#            [[[[coords]]]]
#            __many__=boolstr(default=None)

        [[[attrs]]]
        long_name=strings(default=list())
        standard_name=strings(default=list())
        units=strings(default=list())


        [[[select]]]
        __many__=eval(default=None)



[coords] # Coordinates

    [[__many__]]

    name=string(default=None)
    alt_names=strings(default=list())
    inherit=string(default=None)
    search_order=string(default=ns)
    loc=string(default=None)
    add_loc=boolean(default=None)
    exclude=boolean(default=False)

        [[[add_coords_loc]]]
        __many__=boolstr(default=True)

#        [[[add_loc_sec]]]
#        coord=boolean(default=None)
#
#            [[[[coords]]]]
#            __many__=boolean(default=None)

        [[[attrs]]]
        long_name=strings(default=list())
        standard_name=strings(default=list())
        units=strings(default=list())
        axis=string(default=None)


[dims] # Dimensions
    x=strings(default=list())
    y=strings(default=list())
    z=strings(default=list())
    t=strings(default=list())
    f=strings(default=list())