From 79b207526400c08a92126d282948284984c88b80 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 9 Jun 2021 16:42:23 -0500
Subject: [PATCH] minor

---
 modules/aeolus/aeolus_amv.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py
index cceb9eef..6004dcad 100644
--- a/modules/aeolus/aeolus_amv.py
+++ b/modules/aeolus/aeolus_amv.py
@@ -1612,9 +1612,12 @@ def create_file_2(match_dct, filename, clvrx_params):
     var_s = rg_exmpl.variables
     for pidx, param in enumerate(clvrx_params):
         v = var_s[param]
-        var = rootgrp.createVariable(param, v.dtype, ['num_aeolus_profs', 'grd_y_len', 'grd_x_len'], fill_value=v.getncattr('_FillValue'))
-        # copy attributes from example to new output variable of the same name
         attr_s = v.ncattrs()
+        if '_FillValue' in attr_s:
+            var = rootgrp.createVariable(param, v.dtype, ['num_aeolus_profs', 'grd_y_len', 'grd_x_len'], fill_value=v.getncattr('_FillValue'))
+        else:
+            var = rootgrp.createVariable(param, v.dtype, ['num_aeolus_profs', 'grd_y_len', 'grd_x_len'])
+        # copy attributes from example to new output variable of the same name
         for attr in attr_s:
             if attr != '_FillValue':
                 var.setncattr(attr, v.getncattr(attr))
-- 
GitLab