In Julia, functions like mean keep the singleton dimension. In ClimaAnalysis, we don't follow this because it is ambiguous what the value should be. However, there should be an option to keep the singleton dimension. For example, the keyword keepdim can be added to the function. For the value of the dimension, it could default to the first value of the dimension.
In Julia, functions like
meankeep the singleton dimension. In ClimaAnalysis, we don't follow this because it is ambiguous what the value should be. However, there should be an option to keep the singleton dimension. For example, the keywordkeepdimcan be added to the function. For the value of the dimension, it could default to the first value of the dimension.