|
|
@ -592,7 +592,9 @@ class AWRAMS(object): |
|
|
|
path_info_txt:Path = self.mydir.current_filepath |
|
|
|
path_info_txt:Path = self.mydir.current_filepath |
|
|
|
self.save_dict_to_file( self.info_dict, path_info_txt ) |
|
|
|
self.save_dict_to_file( self.info_dict, path_info_txt ) |
|
|
|
|
|
|
|
|
|
|
|
self.do_retrieve() |
|
|
|
self.do_retrieve() |
|
|
|
|
|
|
|
self.append_retrieve(save_path_csv) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def do_retrieve(self, ) -> None: |
|
|
|
def do_retrieve(self, ) -> None: |
|
|
|
'''反演参数并保存 self.res''' |
|
|
|
'''反演参数并保存 self.res''' |
|
|
@ -603,13 +605,13 @@ class AWRAMS(object): |
|
|
|
self.res_retrieve = [ par_400_700, par_350_950, chl, cdom ] |
|
|
|
self.res_retrieve = [ par_400_700, par_350_950, chl, cdom ] |
|
|
|
pass |
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
def append_retrieve(self, ) -> None: |
|
|
|
def append_retrieve(self, fpath) -> None: |
|
|
|
'''反演参数并保存 self.res''' |
|
|
|
'''反演参数并保存 self.res''' |
|
|
|
save_path_csv:Path = self.mydir.current_filepath |
|
|
|
# save_path_csv:Path = self.mydir.current_filepath |
|
|
|
res = "res" |
|
|
|
res = NEWLINE + "res" |
|
|
|
for r in self.res_retrieve: |
|
|
|
for r in self.res_retrieve: |
|
|
|
res = NEWLINE + res + TOKEN + str(r) |
|
|
|
res = res + TOKEN + str(r) |
|
|
|
with open(save_path_csv, '+a') as f: |
|
|
|
with open(fpath, '+a') as f: |
|
|
|
f.write(res) |
|
|
|
f.write(res) |
|
|
|
pass |
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|