CliMA / CliMA/ClimaAnalysis.jl

Add function to add singleton dimension

Open
#353 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
12
Forks
5
Avg merge
6d 17h
Merged PRs (30d)
3

Description

For calibration (see https://github.com/CliMA/ClimaCalibrate.jl/issues/257), you may want to do a time average, but the time dimension is gone in this case. To help with this, it would be nice to have a function that insert a singleton dimension to a `OutputVar`.

For example,
```
function insert_singleton_dimension(var::OutputVar, dim_name, dim_value)
# implementation here
end
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the OutputVar type and its existing dimension-manipulation functions. Read the linked ClimaCalibrate.jl issue for the calibration use case and check how dimensions and values are represented. Done means a public function can insert the requested singleton dimension into an OutputVar, with tests covering the example behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.