in sdap/processors/emptytilefilter.py [0:0]
def process_nexus_tile(self, nexus_tile):
the_tile_type = nexus_tile.tile.WhichOneof("tile_type")
the_tile_data = getattr(nexus_tile.tile, the_tile_type)
data = from_shaped_array(the_tile_data.variable_data)
# Only supply data if there is actual values in the tile
if data.size - numpy.count_nonzero(numpy.isnan(data)) > 0:
yield nexus_tile
elif nexus_tile.HasField("summary"):
logger.warning("Discarding data %s from %s because it is empty" % (
nexus_tile.summary.section_spec, nexus_tile.summary.granule))