Xarray engine: profiles

to_xarray() has a large number of keyword arguments to control how the Xarray dataset is generated. To simplify the usage we can define profiles providing custom defaults for most of the keyword arguments. Profiles can be specified via the profile kwarg, which accepts the following values:

  • None: no profile is used

  • “mars”: the default profile

  • “grib”: as “mars” but with some changes

  • dictionary: a custom profile