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

Data access references #101

Open
ldecicco-USGS opened this issue Oct 16, 2024 · 0 comments
Open

Data access references #101

ldecicco-USGS opened this issue Oct 16, 2024 · 0 comments

Comments

@ldecicco-USGS
Copy link

I've gotten more frequent requests for help getting subdaily precip data. At one point I had found some references, but I don't remember anymore where that was (I assume it's somewhere in https://mikejohnson51.github.io/climateR/)

I remember needing to create an Earthdata account, using writeNetrc to store the username and password in the .netrc file. I authorized some applications on the Earthdata website, but I wonder if there are more specific instructions on what applications to authorize here?:
https://urs.earthdata.nasa.gov/application_search

siteID <- '04087214'
startDate <- "2023-09-29"
endDate  <-"2023-10-29"

# Get basin with dataRetrieval
basin <- dataRetrieval::findNLDI(nwis = siteID, find = "basin")[['basin']] |>
  mutate(siteID = siteID)

Sys.setenv(CURLOPT_SSL_VERIFYPEER = FALSE)
pr <- getNLDAS(AOI = basin, 
               model = "FORA0125_H.002",
               varname = "apcpsfc",
               startDate = startDate, endDate  = endDate) 
Note:Caching=1
Error:curl error: SSL peer certificate or SSH remote key was not OK
curl error details: 
Warning:oc_open: Could not read url
Error in open.nc(glue("{url}?{T_name}")) : NetCDF: I/O failure

I also tried following the Readme workflow:

Sys.setenv(CURLOPT_SSL_VERIFYPEER = FALSE)
checkNetrc()
[1] TRUE
writeDodsrc()
[1] ".dodsrc"
> modis_pet = getMODIS(
     AOI       = cities,
     asset    = 'MOD16A3GF.061',
     varname   = "PET_500m",
     startDate = "2020-10-29")
Note:Caching=1
Error:curl error: SSL peer certificate or SSH remote key was not OK
curl error details: 
Warning:oc_open: Could not read url
Note:Caching=1
Error:curl error: SSL peer certificate or SSH remote key was not OK
curl error details: 
Warning:oc_open: Could not read url
Note:Caching=1
Error:curl error: SSL peer certificate or SSH remote key was not OK
curl error details: 
Warning:oc_open: Could not read url
Note:Caching=1
Error:curl error: SSL peer certificate or SSH remote key was not OK
curl error details: 
Warning:oc_open: Could not read url
Error in fix.by(by.x, x) : 'by' must specify a uniquely valid column

I'm trying to work with my IT group to see if there's anything we can do, but I want to gather as much information as possible ahead of time. Thanks! There's clearly a ton of interest in using this package, we (USGS) just need to figure out how to get the data through to our government computers...

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

No branches or pull requests

1 participant