Skip to content

problem running wbt_time_in_daylight() #74

Answered by brownag
wiesehahn asked this question in Q&A
Discussion options

You must be logged in to vote

It seems that the colons are stripped out of the default values in the R function definitionwhen converted from whitebox_tools.py. So there is an issue here, thanks for bringing it to our attention. It looks like the documentation is correct, but the default arguments are not functional and haven't been for some time.

For instance, this works:

library(whitebox)
library(terra)

wbt_verbose(TRUE)
wbt_time_in_daylight(sample_dem_data(), output = "test.tif",  44.11856, -72.80839, max_dist=500, end_time='23:59:59')
#> time_in_daylight - Elapsed Time (excluding I/O): 0.566s
plot(rast("test.tif"))

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@wiesehahn
Comment options

Comment options

You must be logged in to vote
2 replies
@wiesehahn
Comment options

@brownag
Comment options

Answer selected by wiesehahn
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@brownag
Comment options

@brownag
Comment options

@wiesehahn
Comment options

Comment options

You must be logged in to vote
1 reply
@brownag
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants