The NSF GAGE Facility, operated by EarthScope Consortium, has transitioned from FTP to HTTPS for access to our data archive file system. We are also now requiring user registration and log in for file server access. For more information, see our notices about the transition.
By downloading files from the NSF GAGE Facility, you are agreeing to abide by the NSF GAGE Data Policy.
To browse the HTTPS file server, simply visit GPS/GNSS file server to log in (see User Authentication below) and view our holdings.
Please send your issues, comments, and suggestions to: data-help@earthscope.org.
We now require all data users to register and login to access the GAGE Data File Server (this new authentication system is known as Identity Management or simply IdM). Please see the link above to the notice. To access the file server from the command line you will need to:
OR
--header "Authorization: Bearer <PASTE YOUR ACCESS TOKEN HERE>"
--header "Authorization: Bearer $(es sso access --token)"
--header "Authorization: Bearer `es sso access --token`"
.
es sso access --token
command by itself to see if the token is being returned correctly. If it is, then the issue is likely with the command substitution syntax in your shell environment. See above note.es sso logout
es sso login
The following examples illustrate access to the NSF GAGE Facility GPS/GNSS data file server using standard file/data transfer utilities in a bash-like shell (see bash for Windows). See our SDK code repository README for an example python download script.
Client | HTTPS Access | command syntax |
---|---|---|
cURL |
Get a single file |
Include an authorization header parameter with your bearer token. Install our Command Line Interface
to facilitate acquiring and refreshing your access token. You can then simply use the CLI command "es sso access --token" via command substitution, for a bash example:$ curl -L -O -f https://gage-data.earthscope.org/archive/gnss/rinex/obs/2022/060/p1230600.22d.Z --header "Authorization: Bearer $(es sso access --token)" |
Get multiple files from a list (build your list of files using: GNSS Data Access Notebooks or query parameters noted below) |
$ xargs -n 1 curl -O --header "Authorization: Bearer $(es sso access --token)" < file_urls_to_download.txt |
|
Get a directory listing (using query parameters noted below) |
$ curl -L "https://gage-data.earthscope.org/archive/gnss/rinex/obs/2022/060/?list" --header "Authorization: Bearer $(es sso access --token)" |
|
Download matching files Downloads three files ('p1230600.22d.Z', 'p1240600.22d.Z', 'p1260600.22d.Z') from archive directory /archive/gnss/rinex/obs/2022/060/ . |
$ curl -L -O "https://gage-data.earthscope.org/archive/gnss/rinex/obs/2022/060/p12{3,4,6}0600.22d.Z" --header "Authorization: Bearer $(es sso access --token)" |
|
Wget |
Get a directory of data
|
Include an authorization header parameter with your bearer token. Install our Command Line Interface
to facilitate acquiring and refreshing your access token. You can then simply use the CLI command "es sso access --token" via command substitution:$ wget -N -r -np -erobots=off --reject="tmp,index.html*" https://gage-data.earthscope.org/archive/gnss/rinex/obs/2022/060/ --header "Authorization: Bearer $(es sso access --token)" |
Get a single file |
$ wget https://gage-data.earthscope.org/archive/gnss/rinex/obs/2022/060/p1230600.22d.Z --header "Authorization: Bearer $(es sso access --token)" |
|
Get multiple files from a list (build your list of files using: GNSS Data Access Notebooks or query parameters noted below) |
$ wget -i file_urls_to_download.txt --header "Authorization: Bearer $(es sso access --token)" |
|
Get a directory listing (using query parameters noted below) |
$ wget "https://gage-data.earthscope.org/archive/gnss/rinex/obs/2022/060/?list" --header "Authorization: Bearer $(es sso access --token)" |
|
Get station P123 obs files for the year 2010
|
$ wget -N -r -l3 -np -nd -erobots=off --reject="tmp,index.html*" -A "p123*" https://gage-data.earthscope.org/archive/gnss/rinex/obs/2020/060/ --header "Authorization: Bearer $(es sso access --token)" |
|
Query parameters
|
Append ?list to directory URLs to get plaintext directory listings w/file names, file sizes in bytes, ISO8601 modification dates, and Unix timestamps. Use this parameter with cURL or Wget to check for new files in our archive. This does not display sub-directories. |
See https://gage-data.earthscope.org/archive/gnss/rinex/met/2021/072/?list. |
Add additional parameter to the list option for a listing with sub-directories shown: &dirs=1 |
See https://gage-data.earthscope.org/archive/gnss/rinex/met/2021/072/?list&dirs=1. | |
Add additional parameter to the list option for a listing of full URL file paths: &uris=1 This can be a good way to build a list of URLs to feed to Wget or cURL (see also GNSS Data Access Notebooks for generating lists of files based on search parameters like time, location, etc). |
See https://gage-data.earthscope.org/archive/gnss/rinex/met/2021/072/?list&uris=1. |
Last modified: 2024-11-08 17:54:40 America/Denver