cordex.preprocessing.replace_coords

Contents

cordex.preprocessing.replace_coords#

replace_coords(ds, domain=None)[source]#

Replace spatial coordinates with coordinates according to archive specifications.

Parameters:
  • ds (xr.Dataset) – CORDEX like dataset.

  • domain (str) – CORDEX domain name. Required if domain is not specified in the dataset attributes (e.g., CORDEX_domain).

Returns:

ds (xr.Dataset) – Dataset with updated rlon, rlat, lon and lat.