From 477158b2ceb5795cda18d17a86e227195a0e82da Mon Sep 17 00:00:00 2001 From: Eugene Du Date: Wed, 25 Sep 2024 07:24:26 +0000 Subject: [PATCH] Add version option in download_product_from_cddis() --- gnssanalysis/gn_download.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnssanalysis/gn_download.py b/gnssanalysis/gn_download.py index e78ca26..77d246e 100644 --- a/gnssanalysis/gn_download.py +++ b/gnssanalysis/gn_download.py @@ -333,7 +333,7 @@ def generate_long_filename( :param _datetime.timedelta timespan: Timespan of data in file (Start to End epoch), defaults to None :param str solution_type: 3-char string identifier for Solution Type of file, defaults to "" :param str sampling_rate: 3-char string identifier for Sampling Rate of the file, defaults to "15M" - :param str version: 3-char string identifier for Version of the file + :param str version: 1-char string identifier for Version of the file :param str project: 3-char string identifier for Project Type of the file :return str: The IGS long filename given all inputs """ @@ -784,6 +784,7 @@ def download_product_from_cddis( analysis_center: str = "IGS", solution_type: str = "ULT", sampling_rate: str = "15M", + version: str = "0", project_type: str = "OPS", timespan: _datetime.timedelta = _datetime.timedelta(days=2), if_file_present: str = "prompt_user", @@ -826,6 +827,7 @@ def download_product_from_cddis( timespan=timespan, solution_type=solution_type, sampling_rate=sampling_rate, + version=version, project=project_type, ) logging.debug( @@ -849,6 +851,7 @@ def download_product_from_cddis( timespan=timespan, solution_type=solution_type, sampling_rate=sampling_rate, + version=version, project=project_type, ) ftps.cwd(f"gnss/products/{gps_date.gpswk}") @@ -875,6 +878,7 @@ def download_product_from_cddis( timespan=timespan, solution_type=solution_type, sampling_rate=sampling_rate, + version=version, project=project_type, ) download_filepath = check_whether_to_download(