Added function to remove fill values (for example, NTL values set to 65535 should be replaced with NA). Originally this was done with the quality_flag_rm parameter (eg, when is 255), but this caused some confusing things. For example, when using gap filled daily values, the quality flag is 255 when quality filled -- because the quality is for that day, specifically. The expected default output with gap filled is having the gap filled values. So modified code to take "255" out of quality flag, and instead apply the "fill value" (based on documentation) to each variable. I tried to follow an approach of using dataset.attrs.get, but didn't see the fill value as a function. Now I think "quality_flag_rm" options make more sense, as they're all quality -- as fill values are bit different, and think always want to remove.
quality_flag_rm
parameter (eg, when is 255), but this caused some confusing things. For example, when using gap filled daily values, the quality flag is 255 when quality filled -- because the quality is for that day, specifically. The expected default output with gap filled is having the gap filled values. So modified code to take "255" out of quality flag, and instead apply the "fill value" (based on documentation) to each variable. I tried to follow an approach of usingdataset.attrs.get
, but didn't see the fill value as a function. Now I think "quality_flag_rm" options make more sense, as they're all quality -- as fill values are bit different, and think always want to remove.