@@ -39,10 +39,10 @@ def run_adloc(
3939 picks_file = f"{ data_path } /gamma_picks.csv"
4040 events_file = f"{ data_path } /gamma_events.csv"
4141
42- # picks_file = f"{root_path}/{region}/gamma/gamma_picks.csv"
43- # events_file = f"{root_path}/{region}/gamma/gamma_events.csv"
44- # result_path = f"{root_path}/{region}/adloc_gamma"
45- # figure_path = f"{root_path}/{region}/adloc_gamma/figures"
42+ picks_file = f"{ root_path } /{ region } /gamma/gamma_picks.csv"
43+ events_file = f"{ root_path } /{ region } /gamma/gamma_events.csv"
44+ result_path = f"{ root_path } /{ region } /adloc_gamma"
45+ figure_path = f"{ root_path } /{ region } /adloc_gamma/figures"
4646
4747 # picks_file = f"{root_path}/{region}/gamma_plus/gamma_picks.csv"
4848 # events_file = f"{root_path}/{region}/gamma_plus/gamma_events.csv"
@@ -242,7 +242,7 @@ def run_adloc(
242242 stations ["idx_sta" ].map (station_term_time [station_term_time ["phase_type" ] == 1 ]["residual_time" ]).fillna (0 )
243243 )
244244
245- plotting_ransac (stations , figure_path , config , picks , events_init , events , suffix = f"_ransac_sst_ { iter } " )
245+ plotting_ransac (stations , figure_path , config , picks , events_init , events , suffix = f"_adloc_sst_ { iter } " )
246246
247247 if "event_index" not in events .columns :
248248 events ["event_index" ] = events .merge (picks [["idx_eve" , "event_index" ]], on = "idx_eve" )["event_index" ]
@@ -254,9 +254,9 @@ def run_adloc(
254254 picks ["adloc_mask" ] = picks ["mask" ]
255255 picks ["adloc_residual_time" ] = picks ["residual_time" ]
256256 picks ["adloc_residual_amplitude" ] = picks ["residual_amplitude" ]
257- picks .to_csv (os .path .join (result_path , f"ransac_picks_sst_ { iter } .csv" ), index = False )
258- events .to_csv (os .path .join (result_path , f"ransac_events_sst_ { iter } .csv" ), index = False )
259- stations .to_csv (os .path .join (result_path , f"ransac_stations_sst_ { iter } .csv" ), index = False )
257+ picks .to_csv (os .path .join (result_path , f"adloc_picks_sst_ { iter } .csv" ), index = False )
258+ events .to_csv (os .path .join (result_path , f"adloc_events_sst_ { iter } .csv" ), index = False )
259+ stations .to_csv (os .path .join (result_path , f"adloc_stations_sst_ { iter } .csv" ), index = False )
260260
261261 if iter == 0 :
262262 MIN_SST_S = (
@@ -290,9 +290,9 @@ def run_adloc(
290290 stations .drop (["idx_sta" , "x_km" , "y_km" , "z_km" ], axis = 1 , inplace = True , errors = "ignore" )
291291 # stations.rename({"station_term": "adloc_station_term_s"}, axis=1, inplace=True)
292292
293- picks .to_csv (os .path .join (result_path , "ransac_picks .csv" ), index = False )
294- events .to_csv (os .path .join (result_path , "ransac_events .csv" ), index = False )
295- stations .to_csv (os .path .join (result_path , "ransac_stations .csv" ), index = False )
293+ picks .to_csv (os .path .join (result_path , "adloc_picks .csv" ), index = False )
294+ events .to_csv (os .path .join (result_path , "adloc_events .csv" ), index = False )
295+ stations .to_csv (os .path .join (result_path , "adloc_stations .csv" ), index = False )
296296
297297
298298# %%
0 commit comments