[R] taking a small piece of large tiff
btupper at bigelow.org
Wed Apr 5 17:08:48 CEST 2017
You'll get a lot of help if you take this question to the R-sig-geo list
In the meantime, you might want to try reading this using raster::raster() and then cropping to your desired region. Here's a discussion that may help you...
You will find many other useful bits using Rseek.org - try http://rseek.org/?q=subset+large+geotif
> On Apr 5, 2017, at 3:23 AM, Louisa Reynolds via R-help <r-help at r-project.org> wrote:
> Ok. I have a tiff of size over 2GB. It covers a sixth of the Earth's surface and I'm trying to cut a UK piece out of it. The tiff I start with seems to be too large for R to handle.
> Sent from my iPhone
>> On 4 Apr 2017, at 18:37, jim holtman <jholtman at gmail.com> wrote:
>> How big is 'large'?
>> Jim Holtman
>> Data Munger Guru
>> What is the problem that you are trying to solve?
>> Tell me what you want to do, not how you want to do it.
>> On Tue, Apr 4, 2017 at 7:47 AM, Louisa Reynolds via R-help
>> <r-help at r-project.org> wrote:
>>> Dear Forum
>>> I am trying to cut out a small section of a very large 2-dimensional grayscale image as a tiff in R, but it is having difficulty handling such large files. I have looked at bigmemory and ff packages but it is unclear how I can use these packages with tiffs. Can anyone please suggest something? I have tried tiff and rtiff libraries.
>>> Thanks in advance.
>>> [[alternative HTML version deleted]]
>>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive, P.O. Box 380
East Boothbay, Maine 04544
More information about the R-help