Fix GNSS data retrieval and downloading functions#794
Open
Conversation
Updated the get_stats_by_llh function to prioritize IGS20 coordinates over legacy data. Enhanced the download_UNR function to include a fallback to the legacy archive when downloading tropospheric delays. Context: There appears to be ongoing migration of data in the UNR archive such that data from much of the eastern hemisphere is disrupted after 2023. This PR is intended to circumvent this.
Added entry for PR #794 to address data migration issues in the UNR archive affecting the eastern hemisphere.
jlmaurer
reviewed
Apr 15, 2026
| url_igs20 = f'{baseURL}gps_timeseries/IGS20/llh/llh.out' | ||
| col_names = ['ID', 'Lat', 'Lon', 'Hgt_m'] | ||
|
|
||
| # Read legacy list |
Collaborator
There was a problem hiding this comment.
@sssangha would it make more sense to wrap all of the legacy calls within a single try/except that checks for stations for which IGS20 was successful for all stations and then pulls legacy data only for the subset of stations that are not available? That way the IGS20 is still the default and all the work needed if legacy stations are required is skipped unless they are actually needed.
| # Try IGS20 first | ||
| filepath = download_url(url_igs20, save_loc) | ||
|
|
||
| # If IGS20 is missing, try legacy |
Collaborator
There was a problem hiding this comment.
Does this work if a subset of stations is available but others are not?
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated the get_stats_by_llh function to prioritize IGS20 coordinates over legacy data.
Enhanced the download_UNR function to include a fallback to the legacy archive when downloading tropospheric delays.
Context: There appears to be ongoing migration of data in the UNR archive such that data from much of the eastern hemisphere is disrupted after 2023. This PR is intended to circumvent this.
Screenshots (if appropriate):
Type of change
Checklist: