hunzikp / velox

https://hunzikp.github.io/velox/
119 stars 23 forks source link

Error in if (is_float32) { : missing value where TRUE/FALSE needed #24

Closed Canderson156 closed 6 years ago

Canderson156 commented 6 years ago

Hello,

I'm trying to write my velox Raster to a .tif file and recieve the following message:

vLC2$write("test.tif", overwrite = TRUE) Error in if (is_float32) { : missing value where TRUE/FALSE needed

hunzikp commented 6 years ago

Hi Christine, Thx for the message. Could you post a reproducible example and indicate what version of velox/R you are using?

lilyhahn commented 6 years ago

I'm having the same issue. Trying to load the attached image, extracting a single band, and writing it fails with Error in if (is_float32) { : missing value where TRUE/FALSE needed.
f = velox("LC08_026028_20130520.tif")
rband = velox(f$rasterbands[1], extent = f$extent, res = f$res)
rband$write(path = "band1.tif")
LC08_026028_20130520.zip

nbarsch commented 6 years ago

bump

Having the same issue.

ozjimbob commented 6 years ago

Yep same problem here.

hunzikp commented 6 years ago

I think this is fixed in the development version (0.2.0.9002); at least I don't get any error when replicating @rainshapes' example. Can one of you guys devtools::install_github('hunzikp/velox') and confirm?

pascaloettli commented 6 years ago

@hunzikp I confirm it works with the development version

hunzikp commented 6 years ago

Thanks @pascaloettli!