|
|
|
@ -519,6 +519,13 @@ class Handheld(object): |
|
|
|
def save_handheld(self, mode=0): |
|
|
|
def save_handheld(self, mode=0): |
|
|
|
''' 保存到五个文件 Lsky Esky Lwater Lw Rs ''' |
|
|
|
''' 保存到五个文件 Lsky Esky Lwater Lw Rs ''' |
|
|
|
pth = DATA_DIR |
|
|
|
pth = DATA_DIR |
|
|
|
|
|
|
|
pth = pth.joinpath("output", |
|
|
|
|
|
|
|
self.data.info_frame.year+"_"+self.data.info_frame.month+"_" |
|
|
|
|
|
|
|
+self.data.info_frame.day+"_"+self.data.info_frame.hour+"_" |
|
|
|
|
|
|
|
+self.data.info_frame.minute+"_"+self.data.info_frame.second |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
if not pth.exists(): |
|
|
|
|
|
|
|
pth.mkdir(parents=True) |
|
|
|
header = str(self.deviceid) + TOKEN + self.list2str(list(self.newWavelength)) |
|
|
|
header = str(self.deviceid) + TOKEN + self.list2str(list(self.newWavelength)) |
|
|
|
|
|
|
|
|
|
|
|
Lsky_fpath = pth.joinpath( "Lsky"+SAVE_EXT_NAME ) |
|
|
|
Lsky_fpath = pth.joinpath( "Lsky"+SAVE_EXT_NAME ) |
|
|
|
|