@@ -324,7 +324,6 class Plot(Operation): | |||||
324 | self.pf_axes.append(cax) |
|
324 | self.pf_axes.append(cax) | |
325 |
|
325 | |||
326 | for n in range(self.nrows): |
|
326 | for n in range(self.nrows): | |
327 | print(self.nrows) |
|
|||
328 | if self.colormaps is not None: |
|
327 | if self.colormaps is not None: | |
329 | cmap = plt.get_cmap(self.colormaps[n]) |
|
328 | cmap = plt.get_cmap(self.colormaps[n]) | |
330 | else: |
|
329 | else: | |
@@ -531,6 +530,9 class Plot(Operation): | |||||
531 | ), |
|
530 | ), | |
532 | ) |
|
531 | ) | |
533 | ) |
|
532 | ) | |
|
533 | log.log('Saving figure: {}'.format(figname), self.name) | |||
|
534 | if not os.path.isdir(os.path.dirname(figname)): | |||
|
535 | os.makedirs(os.path.dirname(figname)) | |||
534 | fig.savefig(figname) |
|
536 | fig.savefig(figname) | |
535 |
|
537 | |||
536 | def send_to_server(self): |
|
538 | def send_to_server(self): | |
@@ -684,7 +686,7 class Plot(Operation): | |||||
684 | def close(self): |
|
686 | def close(self): | |
685 |
|
687 | |||
686 | if self.data and not self.data.flagNoData: |
|
688 | if self.data and not self.data.flagNoData: | |
687 |
self.save_time = |
|
689 | self.save_time = 0 | |
688 | self.__plot() |
|
690 | self.__plot() | |
689 | if self.data and not self.data.flagNoData and self.pause: |
|
691 | if self.data and not self.data.flagNoData and self.pause: | |
690 | figpause(10) |
|
692 | figpause(10) |
@@ -93,6 +93,7 class HDFReader(Reader, ProcessingUnit): | |||||
93 | self.extras = {} |
|
93 | self.extras = {} | |
94 | self.filefmt = "*%Y%j***" |
|
94 | self.filefmt = "*%Y%j***" | |
95 | self.folderfmt = "*%Y%j" |
|
95 | self.folderfmt = "*%Y%j" | |
|
96 | self.utcoffset = 0 | |||
96 |
|
97 | |||
97 | def setup(self, **kwargs): |
|
98 | def setup(self, **kwargs): | |
98 |
|
99 | |||
@@ -169,10 +170,8 class HDFReader(Reader, ProcessingUnit): | |||||
169 |
|
170 | |||
170 | startTime = self.startTime |
|
171 | startTime = self.startTime | |
171 | endTime = self.endTime |
|
172 | endTime = self.endTime | |
172 |
|
173 | thisUtcTime = self.data['utctime'] + self.utcoffset | ||
173 | thisUtcTime = self.data['utctime'] |
|
|||
174 | self.interval = numpy.min(thisUtcTime[1:] - thisUtcTime[:-1]) |
|
174 | self.interval = numpy.min(thisUtcTime[1:] - thisUtcTime[:-1]) | |
175 |
|
||||
176 | thisDatetime = datetime.datetime.utcfromtimestamp(thisUtcTime[0]) |
|
175 | thisDatetime = datetime.datetime.utcfromtimestamp(thisUtcTime[0]) | |
177 |
|
176 | |||
178 | thisDate = thisDatetime.date() |
|
177 | thisDate = thisDatetime.date() |
General Comments 0
You need to be logged in to leave comments.
Login now