pyatran.output.rename_species¶
-
pyatran.output.rename_species(dataset, new_names)[source]¶ Rename a species in an output Dataset
Sometimes, it is necessary to use a fake species name instead of the correct one in SCIATRAN. For example, SCIATRAN doesn’t know about glyoxal.
Parameters: dataset : xarray.Dataset
The dataset containing the SCIATRAN output with the ‘fake’ species names
new_names : dict
A dictionary
{old_name: new_name}Returns: dataset_new : xarray.Dataset
The dataset with the species names replaced