You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sdap.apache.org by GitBox <gi...@apache.org> on 2021/08/11 22:02:32 UTC

[GitHub] [incubator-sdap-ingester] wphyojpl commented on a change in pull request #37: feat: Multiband reader

wphyojpl commented on a change in pull request #37:
URL: https://github.com/apache/incubator-sdap-ingester/pull/37#discussion_r687225915



##########
File path: granule_ingester/granule_ingester/processors/TileSummarizingProcessor.py
##########
@@ -69,29 +79,40 @@ def process(self, tile, dataset, *args, **kwargs):
         elif tile_type == 'grid_tile':
             # Grid tiles need to repeat the weight for every longitude
             # TODO This assumes data axis' are ordered as latitude x longitude
-            tile_summary.stats.mean = type(self).calculate_mean_for_grid_tile(data, latitudes, longitudes)
+            logger.debug(f'set grid mean. tile_summary.data_var_name: {tile_summary.data_var_name}')
+
+            try:
+                tile_summary.stats.mean = type(self).calculate_mean_for_grid_tile(data, latitudes, longitudes, len(data_var_name))

Review comment:
       Need to store mean, min, max for multiple variable. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sdap.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org