diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index be69dac..d76574e 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -6,3 +6,4 @@ | jennyhickson | Jenny Hickson | Met Office | 2026-03-02 | | yaswant | Yaswant Pradhan | Met Office | 2026-05-22 | | arjclark | Andrew Clark | Met Office | 2026-09-08 | +| r-sharp | R Sharp | Met Office | 2026-10-13 | diff --git a/mule/lib/mule/pp.py b/mule/lib/mule/pp.py index 2e514c1..e26dee6 100644 --- a/mule/lib/mule/pp.py +++ b/mule/lib/mule/pp.py @@ -305,11 +305,13 @@ def fields_to_pp_file(pp_file_obj_or_path, field_or_fields, # If the field appears to be variable resolution, attach the # relevant extra data (requires that a UM file object was given) + not_timeseries = field.lbcode not in [31320, ] vector = {} - if (field.bzx == field.bmdi + if ( not_timeseries and + ( field.bzx == field.bmdi or field.bzy == field.bmdi or field.bdx == field.bmdi - or field.bdy == field.bmdi): + or field.bdy == field.bmdi) ): # The variable resolution data can either be already attached # to the field (most likely if it has already come from an existing