xoa.cf.CFCoordSpecs.get_attrs

CFCoordSpecs.get_attrs(cf_name, select=None, exclude=None, errors='warn', loc=None, multi=False, standardize=True, **extra)

Get the default attributes from cf specs

Parameters:
  • cf_name (str) – Valid generic CF name

  • select (str, list) – Include only these attributes

  • exclude (str, list) – Exclude these attributes

  • multi (bool) – Get standard_name and long_name attribute as a list of possible values

  • errors ({'ignore', 'warn', 'raise'}) –

    In case of errors

    • 'ignore': silently ignore

    • 'warn': emit a warning

    • 'raise': raise an exception

  • extra (dict) – Extra params are included as extra attributes

Returns:

dict