From 3077cc81a21f7f5f2e1365ed600468807394d4c0 Mon Sep 17 00:00:00 2001
From: Uwe Schulzweida <uwe.schulzweida@mpimet.mpg.de>
Date: Fri, 19 Apr 2024 17:59:31 +0200
Subject: [PATCH]  cdfVerifyVars: disable check failed with cdo option --cmor

---
 src/stream_cdf_i.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/stream_cdf_i.c b/src/stream_cdf_i.c
index a99615bee..6a84e170b 100644
--- a/src/stream_cdf_i.c
+++ b/src/stream_cdf_i.c
@@ -1366,7 +1366,14 @@ cdfScanVarAttr(int nvars, ncvar_t *ncvars, int ndims, ncdim_t *ncdims, int timed
                   cdf_set_var(ncvar, CoordVar);
                 }
               else
-                Warning("%s - %s", nc_strerror(status), attstring);
+                {
+                  static bool printWarning = true;
+                  if (printWarning)
+                    {
+                      printWarning = false;
+                      Warning("%s - %s", nc_strerror(status), attstring);
+                    }
+                }
             }
           else if (isText && str_is_equal(attname, "formula_terms"))
             {
-- 
GitLab