diff --git a/core/ArchiveExtractor.py b/core/ArchiveExtractor.py index 01f6ca243deda0fd03935aa41bd6a016d83b1f4b..b66027a6f045eee08a9d32a49032dbe4fcf2073c 100755 --- a/core/ArchiveExtractor.py +++ b/core/ArchiveExtractor.py @@ -481,6 +481,9 @@ class ArchiveExtractor: List of datetime giving the limit of each chunks. For N chunks, there is N+1 elements in cdates, as the start and end boundaries are included. """ + info=self.infoattr(attribute) + self.logger.debug("Attribute information \n%s"%info) + # Get the number of points N=self.extractor.GetAttDataBetweenDatesCount([ attribute, @@ -489,6 +492,11 @@ class ArchiveExtractor: ]) self.logger.debug("On the period, there is %d entries"%N) + dx=int(info["max_dim_x"]) + if dx > 1: + self.logger.debug("Attribute is a vector with max dimension = %s"%dx) + N=N*dx + # If data chunk is too much, we need to cut it if N > Nmax: dt = (dateStop-dateStart)/(N//Nmax)