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

Region and format handling #4

Open
fdetsch opened this issue Oct 22, 2019 · 0 comments
Open

Region and format handling #4

fdetsch opened this issue Oct 22, 2019 · 0 comments
Assignees

Comments

@fdetsch
Copy link
Contributor

fdetsch commented Oct 22, 2019

As reported by a user, the following code

pcn <- getCHIRPS(region = c("Africa"),format = c("netcdf"),
                 tres = c("monthly"), sres = c(0.05),begin = as.Date("1982-01-01"),
                 end = as.Date("1982-01-31"), dsn = file.path(getwd(), "A"))

fails with

Error in function (type, msg, asError = TRUE) :
Server denied you to change to the given directory

for the following reasons:

  • "Africa" needs to be lower case, otherwise the FTP server cannot be found;
  • "netcdf" format is not available for African monthly images, see here.
@fdetsch fdetsch self-assigned this Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant