Last active
December 11, 2021 16:47
-
-
Save yitong-ovo/1e5ed59d8f575106f2f0f37ba36dd141 to your computer and use it in GitHub Desktop.
get latest GPS broadcast ephemeris file (brdc) and uncompress. 获取并解压最新的 brdc 文件。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
## get Current year | |
current_year=$(date +%Y) | |
## get latest version | |
latest_version=$(wget -qO- "ftp://cddis.gsfc.nasa.gov/gnss/data/daily/$current_year/brdc/" | awk -F'/brdc*/' '/brdc*/{print $2}' | cut -d\" -f1 | grep -v '\index.html' | tail -1) | |
## download | |
wget "ftp://cddis.gsfc.nasa.gov/gnss/data/daily/$current_year/brdc/$latest_version" | |
## uncompress | |
uncompress $latest_version |
According to this article, there are many igs daily data servers. For example I currently use this one: curl -O ftp://gssc.esa.int/gnss/data/daily/2021/brdc/brdc3430.21n.gz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://cddis.nasa.gov/Data_and_Derived_Products/CDDIS_Archive_Access.html
"CDDIS discontinued anonymous ftp access to its archive in October 2020. Users must now utilize more secure access protocols such as https or ftp-ssl."
The current script needs to be updated and will not be available until the update is complete.