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&dirs" --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
|
?list 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. |
$ wget "https://gage-data.earthscope.org/archive/gnss/rinex/obs/2022/060/?list" --header "Authorization: Bearer $(es sso access --token)"See https://gage-data.earthscope.org/archive/gnss/rinex/met/2021/072/?list. Note: must be logged in first, otherwise the browser log in process strips these parameters from the URL. |
Add additional parameter to the list option for a listing with sub-directories shown: &dirs |
$ wget "https://gage-data.earthscope.org/archive/gnss/products/position/?list&dirs" --header "Authorization: Bearer $(es sso access --token)"See https://gage-data.earthscope.org/archive/gnss/products/position/?list&dirs. Note: must be logged in first, otherwise the browser log in process strips these parameters from the URL. |
|
Add additional parameter to the list option for a listing of full URL file paths: &uris 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). |
$ wget "https://gage-data.earthscope.org/archive/gnss/rinex/obs/2022/060/?list&uris" --header "Authorization: Bearer $(es sso access --token)"See https://gage-data.earthscope.org/archive/gnss/rinex/obs/2022/060/?list&uris. Note: must be logged in first, otherwise the browser log in process strips these parameters from the URL. |
|
Combine parameters with the list option for a listing of URLs with sub-directories shown: &dirs&uris |
$ wget "https://gage-data.earthscope.org/archive/gnss/products/position/?list&dirs&uris" --header "Authorization: Bearer $(es sso access --token)"See https://gage-data.earthscope.org/archive/gnss/products/position/?list&dirs&uris. Note: must be logged in first, otherwise the browser log in process strips these parameters from the URL. |
Last modified: 2025-01-17 17:07:53 America/Denver