Skip to content

Commit fd9fa75

Browse files
committed
double check reference point and date for correction layers
1 parent b752dd8 commit fd9fa75

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

solid_utils/corrections.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,12 @@ def apply_cor(cor_name, ts_file, cor_file, config_file, mintpy_dir, output_ts, o
4141

4242
cor_file = os.path.join(mintpy_dir, "ion.h5")
4343

44-
# === Apply correction ===
45-
run_cmd(f"diff.py {ts_file} {cor_file} -o {output_ts} --force", desc="Applying the correction")
4644

47-
else:
48-
run_cmd(f"reference_point.py {cor_file} --lat {ref_lat} --lon {ref_lon}", desc="Setting reference point")
49-
run_cmd(f"reference_date.py {cor_file} --ref-date {ref_date}", desc="Setting reference date")
45+
run_cmd(f"reference_point.py {cor_file} --lat {ref_lat} --lon {ref_lon}", desc="Setting reference point")
46+
run_cmd(f"reference_date.py {cor_file} --ref-date {ref_date}", desc="Setting reference date")
5047

51-
# === Apply correction ===
52-
run_cmd(f"diff.py {ts_file} {cor_file} -o {output_ts} --force", desc="Applying the correction")
48+
# === Apply correction ===
49+
run_cmd(f"diff.py {ts_file} {cor_file} -o {output_ts} --force", desc="Applying the correction")
5350

5451
# === Estimate velocity ===
5552
run_cmd(f"timeseries2velocity.py {output_ts} -o {output_vel}", desc="Estimating velocity")

0 commit comments

Comments
 (0)