CliMA / CliMA/ClimaAnalysis.jl

Improve ergonomics by overloading getindex

Open
#369 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
12
Forks
5
Avg merge
7d 2h
Merged PRs (30d)
2

Description

An `OutputVar` is a named array with metadata attached to it. It would be convenient to be able to index into a `OutputVar` by doing something like `var[1, 2, 3]` or `var[time = 1:3]`. There is already support for this with `ClimaAnalysis.select`. which `getindex` can call. It is unclear to me if `var[1,2,3]` should be supported, since it is not obvious what is being indexed.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.