femiguez / apsimx

R package for APSIM-X
https://femiguez.github.io/apsimx-docs/
51 stars 20 forks source link

Error in get_isric_soil_profile function; object 'crps' not found #157

Closed smkuhlani closed 4 months ago

smkuhlani commented 4 months ago

We are running the function to download the soil for a certain point:

get_isric_soil_profile( lonlat = c(37.62541, -1.78472), statistic = c("mean", "Q0.5"), find.location.name = TRUE, fix = FALSE, verbose = TRUE, physical = c("default", "SR"), xargs = NULL )

we are getting the error below:

Error in get_isric_soil_profile(lonlat = c(37.62541, -1.78472), statistic = c("mean", : object 'crps' not found

femiguez commented 4 months ago

@smkuhlani Thanks for the report! This is now fixed in github. Also, I suggest looking at function 'get_worldmodeler_soil_profile' and also building a soil profile using apsimx_soil_profile and passing that to the isric function.

smkuhlani commented 4 months ago

'get_worldmodeler_soil_profile' function, initially worked then began to give the error below:

apsimx::get_worldmodeler_soil_profile(lonlat = c(37.26521,-1.52233))

Warning message: In get_worldmodeler_soil_profile(lonlat = c(37.26521, -1.52233)) : Could not get a soil for row 1

May you please cross check if the error is on my side.