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

error message when only 1 number is used as a constraint #108

Open
oceanwatch opened this issue Feb 7, 2023 · 0 comments
Open

error message when only 1 number is used as a constraint #108

oceanwatch opened this issue Feb 7, 2023 · 0 comments

Comments

@oceanwatch
Copy link

Session Info

It would be helpful to have a more explicit error message reminding users to pass a vector of length 2 for each constraints. When only 1 number is passed, the error message is confusing:

library(rerddap)

ERDDAP_Node <- "https://coastwatch.pfeg.noaa.gov/erddap/"
dataInfo <- rerddap::info('jplMURSST41', 
                          url=ERDDAP_Node)

var <- dataInfo$variable$variable_name
date1="2014-01-01"

dat <- griddap(
  url=ERDDAP_Node, "jplMURSST41",
  time = date1,
  latitude = c(41.01585, 44.6308),
  longitude = c(-72.41734, -65.96161),
  fields = var[1]
)

gives this error message:
Error: Error {
code=500;
message="Internal Server Error: Error: destinationVariableName=analysed_sst2014-01-01 wasn't found in datasetID=jplMURSST41.";
}

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