[ https://issues.apache.org/jira/browse/SDAP-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Riley Kuttruff reassigned SDAP-502: ----------------------------------- Assignee: (was: Riley Kuttruff) > Tile generation fails for slices with single lats or lons > --------------------------------------------------------- > > Key: SDAP-502 > URL: https://issues.apache.org/jira/browse/SDAP-502 > Project: Apache Science Data Analytics Platform > Issue Type: Bug > Components: granule-ingester > Reporter: Riley Kuttruff > Priority: Trivial > > Data subsetting in the tile reading processor uses np.squeeze on subsetted > data > ([example|[https://github.com/apache/incubator-sdap-ingester/blob/0589f473c66a68830aca4b06160f8e756459e4f6/granule_ingester/granule_ingester/processors/reading_processors/GridReadingProcessor.py#L35-L42]).] > In the event that a tile is one greater than a multiple of the desired tile > size (eg, dim length mod dim tile length == 1), we will get a lat or lon > subset whose dimension lengths are all 1. When that is squeezed, the result > is a 0-dimension numpy array, which can then throw an error, say, it it is > used as an input to len(). > > A simple fix would be to check if the squeezed subset is 0-dimensional and > then expanding it into a dimensioned array. -- This message was sent by Atlassian Jira (v8.20.10#820010)