act.utils.assign_coordinates(ds, coord_list)[source]

This procedure will create a new ACT dataset whose coordinates are designated to be the variables in a given list. This helps make data slicing via xarray and visualization easier.

  • ds (ACT Dataset) – The ACT Dataset to modify the coordinates of.

  • coord_list (dict) – The list of variables to assign as coordinates, given as a dictionary whose keys are the variable name and values are the dimension name.


new_ds (ACT Dataset) – The new ACT Dataset with the coordinates assigned to be the given variables.