wwreith
2013-Jul-26 20:51 UTC
[R] readTiff - Sorry can't handle images with 32-bit samples
I tried using readTiff() and got the error message "Sorry can't handle images with 32-bit samples" line of code x <- readTiff("C:/Users/550062/Desktop/Data/example1.tif") So far I have not had any luck finding this error message on google. Any guess at what it means and how to get the code to work? Thanks! -- View this message in context: http://r.789695.n4.nabble.com/readTiff-Sorry-can-t-handle-images-with-32-bit-samples-tp4672465.html Sent from the R help mailing list archive at Nabble.com.
Jeff Newmiller
2013-Jul-26 21:57 UTC
[R] readTiff - Sorry can't handle images with 32-bit samples
Try reading a different file. The error message says the existing code cannot read that file. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. wwreith <reith_william at bah.com> wrote:>I tried using readTiff() and got the error message "Sorry can't handle >images >with 32-bit samples" > >line of code > >x <- readTiff("C:/Users/550062/Desktop/Data/example1.tif") > >So far I have not had any luck finding this error message on google. >Any >guess at what it means and how to get the code to work? > >Thanks! > > > >-- >View this message in context: >http://r.789695.n4.nabble.com/readTiff-Sorry-can-t-handle-images-with-32-bit-samples-tp4672465.html >Sent from the R help mailing list archive at Nabble.com. > >______________________________________________ >R-help at r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.
Peter Langfelder
2013-Jul-26 22:08 UTC
[R] readTiff - Sorry can't handle images with 32-bit samples
Disclaimer: I haven't seen your tif file and I know nothing about readTiff... but here go some general comments. TIF files can use different bit depths (number of bits to store each pixel (or each color for each pixel). Most common software outputs 8- or 16-bits, but your file probably has a higher bit depth of 32 bits per sample. Apparently readTiff cannot handle such bit depth. You may need to convert the 32-bit delth file(s) into 16-bit depth (or whatever readTiff can handle). My suggestion would be to look at ImageMagick, but you may also be able to use some image editing applications to do that, Peter On Fri, Jul 26, 2013 at 1:51 PM, wwreith <reith_william at bah.com> wrote:> I tried using readTiff() and got the error message "Sorry can't handle images > with 32-bit samples" > > line of code > > x <- readTiff("C:/Users/550062/Desktop/Data/example1.tif") > > So far I have not had any luck finding this error message on google. Any > guess at what it means and how to get the code to work? > > Thanks! > > > > -- > View this message in context: http://r.789695.n4.nabble.com/readTiff-Sorry-can-t-handle-images-with-32-bit-samples-tp4672465.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.