- 
                Notifications
    
You must be signed in to change notification settings  - Fork 22
 
Open
Labels
data wranglingWe must feed the models so they don't get crankyWe must feed the models so they don't get cranky
Description
I'm trying to run this experiment here: https://clima.github.io/ClimaOceanDocumentation/stable/literated/near_global_ocean_simulation/
When trying to load the ECCO data I always get this error:
julia> set!(ocean.model, T=Metadatum(:temperature, dataset=ECCO4Monthly()),
                         S=Metadatum(:salinity, dataset=ECCO4Monthly()))
[ Info: Downloading ECCO data: temperature in /cluster/home/aklocker/.julia/scratchspaces/0376089a-ecfe-4b0e-a64f-9c555d74d754/ECCO/v4...
[ Info:  ... downloaded 381.0 B (100% complete, 2.195 hours)
[ Info:  ... downloaded 381.0 B (100% complete, 2.195 hours)
[ Info:  ... downloaded 381.0 B (100% complete, 2.195 hours)
[ Info:  ... downloaded 381.0 B (100% complete, 2.195 hours)
ERROR: RequestError: HTTP/1.1 401 Unauthorized while requesting https://ecco.jpl.nasa.gov/drive/files/Version4/Release4/interp_monthly/THETA/1992/THETA_1992_01.nc
The login credentials are definitely correct:
julia> # Function to verify credentials manually
       function verify_ecco_url_access(url::String)
           try
               response = HTTP.get(url; username=ENV["ECCO_USERNAME"], password=ENV["ECCO_PASSWORD"])
               return response.status == 200
           catch e
               println("Error: ", e)
               return false
           end
       end
       # Test URL
verify_ecco_url_access (generic function with 1 method)
julia> test_url = "https://ecco.jpl.nasa.gov/drive/files/Version4/Release4/interp_monthly/THETA/1992/THETA_1992_01.nc"
"https://ecco.jpl.nasa.gov/drive/files/Version4/Release4/interp_monthly/THETA/1992/THETA_1992_01.nc"
julia> if verify_ecco_url_access(test_url)
           println("ECCO credentials verified successfully!")
       else
           error("Failed to verify ECCO credentials. Check the username and password.")
       end
ECCO credentials verified successfully!Is there anything else I could be doing wrong? And in addition, can I actually choose where all the files get saved?
Cheers,
Andreas
navidcy
Metadata
Metadata
Assignees
Labels
data wranglingWe must feed the models so they don't get crankyWe must feed the models so they don't get cranky