Skip to content

Commit

Permalink
Add debug log message to know when AOD QC filtering is being performed
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Jan 10, 2024
1 parent ea5aa22 commit 9d8b2fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions satpy/readers/viirs_edr.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,5 +372,6 @@ def _mask_invalid(self, data_arr: xr.DataArray, ds_info: dict) -> xr.DataArray:
new_data_arr = super()._mask_invalid(data_arr, ds_info)
if self._aod_qc_filter is None or ds_info["name"] != "AOD550":
return new_data_arr
LOG.debug(f"Filtering AOD data to include quality <= {self._aod_qc_filter}")
qc_all = self.nc["QCAll"]
return new_data_arr.where(qc_all <= self._aod_qc_filter)

0 comments on commit 9d8b2fd

Please sign in to comment.