I am getting the Error: Unprocessable Entity (HTTP 422) with the get_power function (global meteorology and surface solar energy climatology data) of the NASAPOWER library in R
library(nasapower)
ag_d <- get_power(
community = "AG",
lonlat = c(151.81, -27.48),
pars = c("RH2M", "T2M", "PRECTOT"),
dates = "1985-01-01",
temporal_average = "DAILY"
)
Any suggestions!
NASA Power API version 2 was released. The maintainer of nasapower R's package has been updating the codes. Take a look at the github repo. You can find, for example, that PRECTOT was changed to PRECTOTCORR. You can also find the progress here.
They recommend using the in-development version:
Best