def map_dtype_name_to_pixel_type(dtype_name):
    """
    Performs mapping of ndarray underlying data type to
    proper pixel data type
    :param: dtype_name: name of data type representation
    of underlying np.ndarray
    :return: String representing the correct pixel data type
    """
    if dtype_name == 'float16':
        want = 'float16'
    if dtype_name == 'float32':
        want = 'float'
    elif dtype_name == 'float64':
        want = 'double'
    else:
        want = dtype_name
    return want