polaris.resolution.resolution_to_string_and_units

polaris.resolution.resolution_to_string_and_units(resolution)[source]

Convert a resolution to a string and its units

Parameters:

resolution (float) – The resolution in km

Returns:

  • res_str (str) – The resolution as a string for use as a subdirectory

  • units (str) – The units of the resolution (e.g. ‘km’, ‘m’, ‘cm’)