rename

When combining several sources, it is common to have different values for a given attribute to represents the same concept. For example, temperature_850hPa and t_850 are two different ways to represent the temperature at 850 hPa. The rename filter allows to rename a key to another key. It is a filter that needs to follow a source or another filter in a pipe operation.

input:
  pipe:
    - source: # mars, grib, netcdf, etc.
      # source attributes here
      # ...

    - rename:
        param: # Map old `param` names to new ones
          temperature_2m: 2t
          temperature_850hPa: t_850
          # ...

Note

The rename filter was mostly designed to rename the param attribute, but any key can be renamed. The rename filter can take several renaming keys.