Skip to content

Instantly share code, notes, and snippets.

@yitong-ovo
Last active December 11, 2021 16:47
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yitong-ovo/1e5ed59d8f575106f2f0f37ba36dd141 to your computer and use it in GitHub Desktop.
Save yitong-ovo/1e5ed59d8f575106f2f0f37ba36dd141 to your computer and use it in GitHub Desktop.
get latest GPS broadcast ephemeris file (brdc) and uncompress. 获取并解压最新的 brdc 文件。
#!/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
@win32cpp
Copy link

How do I make a brdc gpd file for the my GPS with the downloaded information above?

@yitong-ovo
Copy link
Author

yitong-ovo commented Nov 27, 2019

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).

@win32cpp
Copy link

thanks for the reply.
I'm looking for a way to create a GPD file independently.(such as above server's)

@yitong-ovo
Copy link
Author

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.

@GroverChouT
Copy link

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