pywatershed.meta#

The metadata module.

Metadata for variables, parameters and dimensions are accssed by the functions in this module.

The metadata are static (pywatershed/static/metadata) so this is a module and not a class.

Functions

filter_vars(var_list, key[, vals])

rtype:

dict

find_variables(vars)

Find metadata for variables from variable, dimensions, control, and parameter metadata types.

get_control(var_list)

Get the variable metadata for the supplied subclass.

get_dimensions(vars)

Get the dimensions strings for one or more variables for a specific metadata data type.

get_dims(var_list)

Get the variable metadata for the supplied subclass.

get_numpy_types(variables)

Get the types for the supplied variables.

get_params(inputs_list)

Get the variable metadata for the supplied subclass.

get_types(variables)

Get the types for the supplied variables.

get_units(vars[, to_pint])

For names, return units

get_vars(var_list)

Get the variable metadata for the supplied subclass.

is_available(variable_name)

Determine if a variable is available in the meta data

load_yaml_file(the_file)

Load a yaml file

meta_dimensions(meta_item)

Get the dimensions from a meta dictionary for a variable name

meta_netcdf_type(meta_item)

Get the NetCDF data type for a variable

meta_numpy_type(meta_item)

Get the numpy dtype for a variable

meta_type(meta_item)

Get variable data type from meta data

prms_to_pint(var_units_dict)

Convert PRMS units to pint units