cf.Field.cfa_del_file_substitution

Field.cfa_del_file_substitution(base, constructs=True)[source]

Remove a CFA-netCDF file name substitution.

New in version 3.15.0.

Parameters
base: str

The substitution definition to be removed. May be specified with or without the ${...} syntax. For instance, the following are equivalent: 'base' and '${base}'.

constructs: bool, optional

If True (the default) then metadata constructs also have the file substitutions removed from them.

Returns

dict

The removed CFA-netCDF file name substitution. If the substitution was not defined then an empty dictionary is returned.

Examples

>>> f.cfa_del_file_substitution('base')