From 937ae9bc274767a6f27e004a99f03a005982e588 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 9 Jun 2021 15:54:17 -0500 Subject: [PATCH] minor --- modules/aeolus/aeolus_amv.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py index 2d7ab7a3..cceb9eef 100644 --- a/modules/aeolus/aeolus_amv.py +++ b/modules/aeolus/aeolus_amv.py @@ -1612,11 +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']) + 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() for attr in attr_s: - var.setncattr(attr, v.getncattr(attr)) + if attr != '_FillValue': + var.setncattr(attr, v.getncattr(attr)) nc4_vars.append(var) # Write data to file --------------------- -- GitLab