diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py index 2d7ab7a31210ac2295859187bb21203436f2b084..cceb9eef6bcef44ad2ef9948d182ac51d78bf87c 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 ---------------------