[GRASS-dev] i.colors.enhance: G_calloc() error in r.quantile with large maps

2017-04-27 Thread Markus Neteler
Hi, I am trying to improve the color balance of a large Sentinel-2 scene. The job fail like this: i.colors.enhance creating color enhanced composite B8A B11 B04 Processing... ERROR: G_calloc: unable to allocate 18446744071588213116 * 8 bytes of memory at raster/r.quantile/main.c:355 Proc

Re: [GRASS-dev] i.colors.enhance: G_calloc() error in r.quantile with large maps

2017-04-27 Thread Anna Petrášová
On Thu, Apr 27, 2017 at 7:31 AM, Markus Neteler wrote: > Hi, > > I am trying to improve the color balance of a large Sentinel-2 scene. > The job fail like this: > > i.colors.enhance > creating color enhanced composite B8A B11 B04 > Processing... > ERROR: G_calloc: unable to allocate 18446

Re: [GRASS-dev] i.colors.enhance: G_calloc() error in r.quantile with large maps

2017-04-28 Thread Markus Metz
On Thu, Apr 27, 2017 at 1:31 PM, Markus Neteler wrote: > > Hi, > > I am trying to improve the color balance of a large Sentinel-2 scene. > The job fail like this: > > i.colors.enhance > creating color enhanced composite B8A B11 B04 > Processing... > ERROR: G_calloc: unable to allocate 184

Re: [GRASS-dev] i.colors.enhance: G_calloc() error in r.quantile with large maps

2017-04-29 Thread Markus Neteler
On Fri, Apr 28, 2017 at 5:05 PM, Markus Metz wrote: > On Thu, Apr 27, 2017 at 1:31 PM, Markus Neteler wrote: ... > The reason for the wrong number is integer overflow because num_values is of > type int. Please try trunk r70982. It fixes the problem! GRASS 7.3.svn (grass):/scratch/s2scratch > g

Re: [GRASS-dev] i.colors.enhance: G_calloc() error in r.quantile with large maps

2017-04-30 Thread Markus Neteler
.On Sat, Apr 29, 2017 at 11:16 PM, Markus Neteler wrote: > On Fri, Apr 28, 2017 at 5:05 PM, Markus Metz ... > rows: 88265 > cols: 169411 > cells: 14953061915 ... > I have locally backported it, works too (I'd suggest to backport). Mhh, there is still another issue: GRASS 7.

Re: [GRASS-dev] i.colors.enhance: G_calloc() error in r.quantile with large maps

2017-04-30 Thread Markus Neteler
On Sun, Apr 30, 2017 at 11:47 AM, Markus Neteler wrote: > > .On Sat, Apr 29, 2017 at 11:16 PM, Markus Neteler wrote: >> On Fri, Apr 28, 2017 at 5:05 PM, Markus Metz > ... >> rows: 88265 >> cols: 169411 >> cells: 14953061915 > ... >> I have locally backported it, works too (I

Re: [GRASS-dev] i.colors.enhance: G_calloc() error in r.quantile with large maps

2017-04-30 Thread Markus Metz
On Sun, Apr 30, 2017 at 12:51 PM, Markus Neteler wrote: > > On Sun, Apr 30, 2017 at 11:47 AM, Markus Neteler wrote: > > > > .On Sat, Apr 29, 2017 at 11:16 PM, Markus Neteler wrote: > >> On Fri, Apr 28, 2017 at 5:05 PM, Markus Metz > > ... > >> rows: 88265 > >> cols: 169411 > >>

Re: [GRASS-dev] i.colors.enhance: G_calloc() error in r.quantile with large maps

2017-05-01 Thread Markus Neteler
On Sun, Apr 30, 2017 at 10:39 PM, Markus Metz wrote: ... > 16+GB of RAM still seems too much to me, unless the histograms of the cell > values are highly skewed. What is the output of r.stats -c for B04_255, > B11_255, B8A_255? Since this comes from our automated processing chain I could only rei

Re: [GRASS-dev] i.colors.enhance: G_calloc() error in r.quantile with large maps

2017-05-01 Thread Markus Metz
On Mon, May 1, 2017 at 11:17 AM, Markus Neteler wrote: > > On Sun, Apr 30, 2017 at 10:39 PM, Markus Metz > wrote: > ... > > 16+GB of RAM still seems too much to me, unless the histograms of the cell > > values are highly skewed. What is the output of r.stats -c for B04_255, > > B11_255, B8A_255?

Re: [GRASS-dev] i.colors.enhance: G_calloc() error in r.quantile with large maps

2017-05-02 Thread Markus Neteler
On Mon, May 1, 2017 at 3:27 PM, Markus Metz wrote: > On Mon, May 1, 2017 at 11:17 AM, Markus Neteler wrote: >> On Sun, Apr 30, 2017 at 10:39 PM, Markus Metz >> ... >> > 16+GB of RAM still seems too much to me, unless the histograms of the >> > cell >> > values are highly skewed. What is the outpu