|
|
|
@ -493,9 +493,8 @@ class AWRAMS(object): |
|
|
|
|
self.get_ymdhms() |
|
|
|
|
# get Lw Rs |
|
|
|
|
self.getLwRs() |
|
|
|
|
# 保存 info.txt |
|
|
|
|
# 保存 data |
|
|
|
|
self.appendSave() |
|
|
|
|
# 保存 data info |
|
|
|
|
self.saveOnefileForLskyEskyLwaterLwRS() |
|
|
|
|
# 通知ui |
|
|
|
|
self.__set_msg("data", {"tm":self.ymdhms, "res":self.res} ) |
|
|
|
|
pub.sendMessage("update" , msg=self.msg) |
|
|
|
@ -563,6 +562,57 @@ class AWRAMS(object): |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def saveOnefileForLskyEskyLwaterLwRS(self, ) -> bool: |
|
|
|
|
log.info(f" ", __name__, "saveOnefileForLskyEskyLwaterLwRS") |
|
|
|
|
self.mydir.setBaseDir(self.output_path) #基路径 |
|
|
|
|
self.mydir.newDirIfNot() |
|
|
|
|
self.mydir.newFileIfNot("data" + SAVE_EXT_NAME) |
|
|
|
|
|
|
|
|
|
self.mydir.setHeader( self.wavelength.tolist(), TOKEN, "device_id_"+str(self.device_id) ) |
|
|
|
|
header = self.mydir.header_str |
|
|
|
|
|
|
|
|
|
save_path_csv:Path = self.mydir.current_filepath |
|
|
|
|
data_str = "" |
|
|
|
|
for k in self.res.keys(): |
|
|
|
|
self.mydir.setContent(self.res[k].tolist(),TOKEN,k ) |
|
|
|
|
data_str = data_str + NEWLINE + self.mydir.content_str |
|
|
|
|
save_path_csv.write_text(header+data_str) |
|
|
|
|
|
|
|
|
|
# info.txt |
|
|
|
|
self.mydir.newFileIfNot("info.txt") |
|
|
|
|
path_info_txt:Path = self.mydir.current_filepath |
|
|
|
|
self.save_dict_to_file( self.info_dict, path_info_txt ) |
|
|
|
|
|
|
|
|
|
self.do_retrieve() |
|
|
|
|
|
|
|
|
|
def do_retrieve(self, ) -> None: |
|
|
|
|
'''反演参数并保存 self.res''' |
|
|
|
|
PAR_400_700 = self.get_par_400_700() |
|
|
|
|
PAR_350_950 = self.get_par_350_950() |
|
|
|
|
chl = self.get_chl() |
|
|
|
|
cdom = self.get_CDOM() |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
def get_par_400_700(self, ) -> float: |
|
|
|
|
'''反演参数并保存 基于self.res''' |
|
|
|
|
return 0.0 |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
def get_par_350_950(self, ) -> float: |
|
|
|
|
'''反演参数并保存 基于self.res''' |
|
|
|
|
return 0.0 |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
def get_chl(self, ) -> float: |
|
|
|
|
'''反演参数并保存 基于self.res''' |
|
|
|
|
return 0.0 |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
def get_CDOM(self, ) -> float: |
|
|
|
|
'''反演参数并保存 基于self.res''' |
|
|
|
|
return 0.0 |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
def getRetDict(self,) : |
|
|
|
|
ret_dict = { } |
|
|
|
|
ret_dict.update( {self.device_enum(1).name:np.array([])} ) |
|
|
|
|