From 2acbc6c414983db1377ddaa952296b0aba48cf2c Mon Sep 17 00:00:00 2001 From: Chunxiao Li Date: Tue, 26 May 2020 20:59:51 +0800 Subject: [PATCH] Update spaceweather.py --- pyatmos/msise/spaceweather.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyatmos/msise/spaceweather.py b/pyatmos/msise/spaceweather.py index 9bd0b5f..c4647d6 100644 --- a/pyatmos/msise/spaceweather.py +++ b/pyatmos/msise/spaceweather.py @@ -58,7 +58,7 @@ def download_sw(direc=None): if not path.exists(direc): makedirs(direc) if not path.exists(swfile): - print('Downloading the latest space weather data',end=' ... ') + print('Downloading the latest space weather data from celestrak',end=' ... ') urlretrieve(url, swfile) print('Finished') @@ -66,11 +66,11 @@ def download_sw(direc=None): modified_time = datetime.fromtimestamp(path.getmtime(swfile)) if datetime.now() > modified_time + timedelta(days=1): remove(swfile) - print('Updating the space weather data',end=' ... ') + print('Updating the space weather data from celestrak',end=' ... ') urlretrieve(url, swfile) print('Finished') else: - print('The existing space weather data is already up to date') + print('The existing space weather data is already up to date.') return swfile # =========================== read sw file ========================== #