##// END OF EJS Templates
Se corrige el tiempo para los graficos de Spectros en Alturas
Daniel Valdez -
r354:dd86aaa4ffad
parent child
Show More
@@ -1242,7 +1242,7 class RTIfromSpectraHeis(Figure):
1242 def run(self, dataOut, idfigure, wintitle="", channelList=None, showprofile='True',
1242 def run(self, dataOut, idfigure, wintitle="", channelList=None, showprofile='True',
1243 xmin=None, xmax=None, ymin=None, ymax=None,
1243 xmin=None, xmax=None, ymin=None, ymax=None,
1244 timerange=None,
1244 timerange=None,
1245 save=False, figpath='./', figfile=None, ftp=False, ftpratio=1, show=True, useLocalTime=False, timezone=0):
1245 save=False, figpath='./', figfile=None, ftp=False, ftpratio=1, show=True):
1246
1246
1247 if channelList == None:
1247 if channelList == None:
1248 channelIndexList = dataOut.channelIndexList
1248 channelIndexList = dataOut.channelIndexList
@@ -1259,7 +1259,8 class RTIfromSpectraHeis(Figure):
1259
1259
1260 tmin = None
1260 tmin = None
1261 tmax = None
1261 tmax = None
1262
1262 x = dataOut.getTimeRange()
1263 y = dataOut.getHeiRange()
1263
1264
1264 factor = 1
1265 factor = 1
1265 data = dataOut.data_spc/factor
1266 data = dataOut.data_spc/factor
@@ -1271,20 +1272,10 class RTIfromSpectraHeis(Figure):
1271 # noisedB = 10*numpy.log10(noise)
1272 # noisedB = 10*numpy.log10(noise)
1272
1273
1273 thisDatetime = dataOut.datatime
1274 thisDatetime = dataOut.datatime
1274 if useLocalTime:
1275 first_timezone = dataOut.timeZone
1276 first_useLocalTime = dataOut.useLocalTime
1277 dataOut.timeZone = timezone
1278 dataOut.useLocalTime = useLocalTime
1279 thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.ltctime)
1280
1281 title = "RTI: %s" %(thisDatetime.strftime("%d-%b-%Y"))
1275 title = "RTI: %s" %(thisDatetime.strftime("%d-%b-%Y"))
1282 xlabel = "Local Time"
1276 xlabel = "Local Time"
1283 ylabel = "Intensity (dB)"
1277 ylabel = "Intensity (dB)"
1284
1278
1285 x = dataOut.getTimeRange()
1286 y = dataOut.getHeiRange()
1287
1288 if not self.__isConfig:
1279 if not self.__isConfig:
1289
1280
1290 nplots = 1
1281 nplots = 1
@@ -1348,6 +1339,5 class RTIfromSpectraHeis(Figure):
1348 del self.xdata
1339 del self.xdata
1349 del self.ydata
1340 del self.ydata
1350
1341
1351 dataOut.timeZone = first_timezone
1342
1352 dataOut.useLocalTime = first_useLocalTime
1353 No newline at end of file
1343
General Comments 0
You need to be logged in to leave comments. Login now