-
-
Save yitong-ovo/1e5ed59d8f575106f2f0f37ba36dd141 to your computer and use it in GitHub Desktop.
#!/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 |
This script does not download the files you need.
You may need to look for a GPS AGPS GPD File Server, such as this http://140.206.73.181:7777/brdcGPD.dat or this http://106.14.219.140:7777/brdcGPD.dat (Source: https: // www.jianshu.com/p/bca659939f24).
thanks for the reply.
I'm looking for a way to create a GPD file independently.(such as above server's)
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.
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
How do I make a brdc gpd file for the my GPS with the downloaded information above?