I interpreted this comment as also meaning that if the lat lengths are the same, the resolutions are the same. Is this comment incorrect or am I misinterpreting it?
1. If `ds_a` is lower res (a < b): `return ds_a, ds_b_regrid`
2. If `ds_b` is lower res (b < a): `return ds_a_regrid, ds_b`
3. Otherwise same resolution (a = b): `return ds_a, ds_b`
* Avoid unnecessary call to regridder APIs to possibly save on runtime, for example [for model-only runs ](https://github.com/E3SM-Project/e3sm_diags/blob/ae0d649eba7da29a410022f43ae9abc0d77af991/e3sm_diags/driver/lat_lon_driver.py#L87-L92) where `ds_a` and `ds_b` are the same datasets.
Overview
In this discussion, @chengzhuzhang and I talked about the logic for determining which variable has lower resolution.
My comment:
Possible Solutions:
@golaz suggested that comparing the number of grid points might be more robust. This involves taking the product of lat and lon.