-
Notifications
You must be signed in to change notification settings - Fork 2
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
replace MUR opendap with cloud enabled #2
Comments
Any updates on how to navigate to GHRSST dataset? No longer on opendap, as created by the mur_url function. |
Good question! We have been using the podaac-data-downloader appthat PODAAC provides. https://github.com/podaac/data-subscriber It works well for us. |
The data-subscriber test branch https://github.com/BigelowLab/ghrsst/tree/data-subscriber doesn't use opendap. Instead it uses the command line apps that PODAAC makes freely available. @villesci and @jevanilla might you give it a try? Installation instruction are on the |
I just added archiving and lightweight database utilities. I guess I'm done with it for now until I get some feedback. |
Registered, installed and gave it a spin. Everything seems to be working for me. @btupper |
I'm having difficulty getting the podaac.downloader function to recognize my path - it seems to work fine with the PODAAC bulk data downloader in command line. Additionally, it's my understanding that this currently downloads the global extent for these dates with planned bbox functionality for future updates?
|
Ah, it's the space in that path You are correct that underlying app, |
OK - now the the download path and log filename are single-quoted before passing to the command line, that seems to resolve it on macos. I noticed that your initial end date would have resulted in a full year's worth of data. If you have the space for it is fine, but if not maybe a loop that downloads one (or a few), reads and saves the subset you want and then cleans up will be better for your needs? |
Hm still having problems even when I change the path to a folder in my R working directory with no spaces
And yes, subsetting each day's data in a loop is what I was intending to do once I realized the size of even the subsetted data from the PODAAC command line. FYI, in the |
Thanks for the catches! I often tell people that I am a professional typo-ist. Let me try to replicate your method with "tiles"; at first glance it seems like it should work. Very puzzling. |
This update forces the shell quoting to not use fancy quoting (R defaults to fancy quotes). Might you try again? |
This must have to do with me working on a windows machine/command line? For reference, the program only works in command line when I double quote my path, like so:
Thanks for all of your help! Would be good to see if this issue is replicated on another windows machine |
Oh, so you tried single quoting ...
and found no joy? |
@jevanilla wonders if it might the foreward-vs-back slash separating path segments. What does R print for the command in the log? |
Spaces don't seem an issue:
When pasted in windows command line, neither option works, but once single quotes are replaced with double quotes, downloads are succesful. |
OK, double quotes it is! I'll fix that. I suspect that Johnathan is on to another issue. We are invoking a shell command using unix-y paths (with forward slash) on a window-y platform (back slash.) Might you try the following and copy the output to this thread?
|
Thanks for all the help so far! Here's the output in R console:
|
I just pushed an update to the |
Almost! I figured out a solution thanks to chatgpt. The R console output giving this log entry fails:
With the new update, the log entry results in:
When I copy and paste the above in command line, downloads ok in the correct directory. So there must be some issue with how the function is sending the command to command prompt on windows. Digging into the SOLUTION: I asked chatgpt and it came up with this solution using shell, which does work!
It also suggested wrapping system2 if you need to keep that function for Unix:
So, maybe there can be a detect OS function that directs the command to be sent to command line via |
|
https://podaac.jpl.nasa.gov/dataset/MUR-JPL-L4-GLOB-v4.1?ids=&values=&search=MUR%20v4.1
The text was updated successfully, but these errors were encountered: