You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds functionality to `DataHandler`, `TimeVaryingInputs`, and `SpaceVaryingInputs`
to enable composing multiple input variables into one data variable. To do this, the user
must specify a composing function, multiple variable names, and the file paths where they
can be read from.
Most of the changes have been made at the `DataHandler` level. Each input variable has its
own unique `FileReader` object, and each composed data variable has one `Time/SpaceVaryingInput`
and one `DataHandler`. The composing function itself is applied in the `regridded_snapshot`
function, just before regridding. The user will interact with this feature at the
`Time/SpaceVaryingInput` level.
This feature is only available when using `InterpolationsRegridder`, not `TempestRegridder`.
Design decisions made include:
- If a pre-processing function is provided, it is applied to each input variable before
they are composed.
- Variables are composed before regridding, to preserve higher resolution information
- We assume that all input variables have the same temporal and spatial dimensions.
This is explicitly checked in the `DataHandler` constructor, and will raise an
informative error message if it is not true.
- Multiple input variables can come from one file, or each from their own unique file.
We don't currently support arbitrary numbers of input variables and files, since this
would require more work to implement and is not an expected use case in the near term.
0 commit comments