server
esea_info 2 years ago
parent 4acefa36e2
commit a29843cfde
  1. 9
      awrams.py
  2. BIN
      data/2/37/info.bin
  3. BIN
      data/2/37/sensor.bin

@ -374,6 +374,7 @@ class AWRAMS(object):
def save(self, mode=0):
''' 保存在原文件所在目录 '''
pth = self.data.currentPath
fanme = "20"+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 \
@ -486,7 +487,6 @@ class Handheld(object):
self.Lwater = np.interp( self.newWavelength, self.wavelength[2], self.spectrum[2])
self.Lw = self.Lwater - self.rowFactor * self.Lsky
self.Rs = self.Lw/self.Esky
self.save_handheld()
# 保存 进一步处理
@ -512,6 +512,13 @@ class Handheld(object):
def save_handheld(self, mode=0):
''' 保存到五个文件 Lsky Esky Lwater Lw Rs '''
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))
Lsky_fpath = pth.joinpath( "Lsky"+SAVE_EXT_NAME )

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save