names — Handling names definitions

Handle name and shortName GRIB definitions.


class epygram.extra.griberies.definitions.names.NamesGribDef(actual_init=True, concepts=['name', 'shortName', 'cfName', 'cfVarName'])[source]

Bases: GribDef

Handle name and shortName GRIB definitions.

cfName(fid, grib_edition='grib2', include_comments=False, filter_non_GRIB_keys=True, exact=True)[source]
‘name’ equivalence lookup:
  • if fid is a cfName, get the associated GRIB key/value pairs

  • if fid is a set of GRIB key/value pairs, get the associated cfName(s)

Cf. method _lookup() for other optional arguments.

cfVarName(fid, grib_edition='grib2', include_comments=False, filter_non_GRIB_keys=True, exact=True)[source]
‘name’ equivalence lookup:
  • if fid is a cfVarName, get the associated GRIB key/value pairs

  • if fid is a set of GRIB key/value pairs, get the associated cfVarName(s)

Cf. method _lookup() for other optional arguments.

name(fid, grib_edition='grib2', include_comments=False, filter_non_GRIB_keys=True, exact=True)[source]
‘name’ equivalence lookup:
  • if fid is a name, get the associated GRIB key/value pairs

  • if fid is a set of GRIB key/value pairs, get the associated name(s)

Cf. method _lookup() for other optional arguments.

shortName(fid, grib_edition='grib2', include_comments=False, filter_non_GRIB_keys=True, exact=True)[source]
‘name’ equivalence lookup:
  • if fid is a shortName, get the associated GRIB key/value pairs

  • if fid is a set of GRIB key/value pairs, get the associated shortName(s)

Cf. method _lookup() for other optional arguments.