Skip to content

Munge functionality for the particle filter. #286

Open
Averydx wants to merge 13 commits intoNAU-CCL:2.0-betafrom
Averydx:2.0-beta
Open

Munge functionality for the particle filter. #286
Averydx wants to merge 13 commits intoNAU-CCL:2.0-betafrom
Averydx:2.0-beta

Conversation

@Averydx
Copy link
Copy Markdown

@Averydx Averydx commented Mar 27, 2026

This PR adds munge functionality for PipelineOutput.

  • Added dataframe property to PipelineOutput
  • Added classes to support RealizationStrategy
  • Added classes to support ParameterStrategy
  • Added new munge function munge_pipeline_output

RealizationSelector and ParameterSelector are properties of PipelineOutput whereas
the other selectors are still properties of the rume.

Example usage

``` realization` = particle_filter_output.select.all()
time = rume.time_frame.select.all().group("day").agg()
geo = rume.scope.select.all()
quantity = particle_filter_output.param_select.by_name("log_beta")

df = munge_pipeline_output(particle_filter_output,realization,geo,time,quantity) ```

@Averydx Averydx added the enhancement New feature or request label Mar 27, 2026
@Averydx Averydx self-assigned this Mar 27, 2026
@Averydx
Copy link
Copy Markdown
Author

Averydx commented Apr 10, 2026

I added a munge function to operate on both PipelineOutput and Output. It just adds a realization dimension if the result is an Output and does the same processing. Unfortunately it is slower than standard munge.

The average runtime of munge_combined was 30.15 seconds vs 23.5 seconds for the old munge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant