From aa3fb73eec5572defaffacab03f9d65fd3f17bca Mon Sep 17 00:00:00 2001 From: Zhang Yunjun Date: Sat, 10 Aug 2024 23:54:42 +0800 Subject: [PATCH] gnss.GNSS_SIDESHOW.get_site_lat_lon: dload site list file if not exist --- src/mintpy/objects/gnss.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mintpy/objects/gnss.py b/src/mintpy/objects/gnss.py index 51b6cc4c3..b4de31d27 100644 --- a/src/mintpy/objects/gnss.py +++ b/src/mintpy/objects/gnss.py @@ -1082,6 +1082,8 @@ def get_site_lat_lon(self, print_msg=False) -> (float, float): """ # need to refer to the site list site_list_file = os.path.basename(GNSS_SITE_LIST_URLS['SIDESHOW']) + if not os.path.exists(site_list_file): + dload_site_list(out_file=site_list_file, source=self.source, print_msg=True) # find site in site list file with open(site_list_file) as site_list: