From bb196e74d194e355159ecc983d564e5496a8750c Mon Sep 17 00:00:00 2001 From: Daniel Wolfensberger Date: Thu, 29 Feb 2024 12:58:53 +0100 Subject: [PATCH] coerce bool to int in cfradial writer --- pyart/io/cfradial.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyart/io/cfradial.py b/pyart/io/cfradial.py index be29e42b1..bb3565be2 100644 --- a/pyart/io/cfradial.py +++ b/pyart/io/cfradial.py @@ -866,6 +866,8 @@ def _create_ncvar(dic, dataset, name, dimensions): # set all attributes for key, value in dic.items(): + if type(value) == bool: # convert bool to int + value = int(value) if key in special_keys.keys(): continue if key in ["data", "long_name", "units"]: