Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECCO's metadata_url and urls both add a / between the url's path and filename #316

Closed
navidcy opened this issue Dec 23, 2024 · 3 comments · Fixed by #318
Closed

ECCO's metadata_url and urls both add a / between the url's path and filename #316

navidcy opened this issue Dec 23, 2024 · 3 comments · Fixed by #318

Comments

@navidcy
Copy link
Collaborator

navidcy commented Dec 23, 2024

The metadata_url at:

metadata_url(prefix, m::ECCOMetadata{<:Any, <:ECCO2Daily}) = prefix * "/" * short_name(m) * "/" * metadata_filename(m)
metadata_url(prefix, m::ECCOMetadata{<:Any, <:ECCO2Monthly}) = prefix * "/" * short_name(m) * "/" * metadata_filename(m)

add a / after the prefix. But the prefix is inferred from the urls at:

# URLs for the ECCO datasets specific to each version
urls(::ECCOMetadata{<:Any, <:ECCO2Monthly}) = "https://ecco.jpl.nasa.gov/drive/files/ECCO2/cube92_latlon_quart_90S90N/monthly/"
urls(::ECCOMetadata{<:Any, <:ECCO2Daily}) = "https://ecco.jpl.nasa.gov/drive/files/ECCO2/cube92_latlon_quart_90S90N/daily/"
urls(::ECCOMetadata{<:Any, <:ECCO4Monthly}) = "https://ecco.jpl.nasa.gov/drive/files/Version4/Release4/interp_monthly/"

which also include a / at the end.

This results in a double //.

Which one should we keep; does it matter for elsewhere?

@glwagner
Copy link
Member

Does this cause the downloads to fail? (eg is this a bug or a typo?)

@navidcy
Copy link
Collaborator Author

navidcy commented Dec 27, 2024

Downloading was failing for me; that's how I discovered this.

@glwagner
Copy link
Member

Huh, wonder how the tests passed then

@navidcy navidcy removed the bug Something isn't working label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants