bugpktools - Bugs: bug #47999, pkstat -median

 
 

bug #47999: pkstat -median

Submitted by:  Giuseppe Amatulli <el_selvaje>
Submitted on:  Tue 24 May 2016 04:11:09 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Pieter kempeneers <kempenep>
Open/Closed: ClosedOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 16 Oct 2016 09:13:42 PM UTC, comment #3:

In version 2.6.8 you can also calculate mean and variance from histogram. For large datasets, use option -hist combined with -median -mean or -var/-stdev

Pieter kempeneers <kempenep>
Project AdministratorIn charge of this item.
Wed 25 May 2016 06:44:33 AM UTC, comment #2:

For instance: pkstat -fstats -i slope_1KMmd_GMTEDmd.tif

Pieter kempeneers <kempenep>
Project AdministratorIn charge of this item.
Wed 25 May 2016 06:41:58 AM UTC, comment #1:

The stats are calculated in memory for the entire image. This can be an issue for large imagery (what is the size of the the high res image?). You can try to use -fstats for the basic statistics using GDAL computeStatistics like min,max, mean and stdDev of the raster datasets.

Pieter kempeneers <kempenep>
Project AdministratorIn charge of this item.
Tue 24 May 2016 04:11:09 PM UTC, original submission:

Hi,
I'm testing pkstat -median and -mean.

With low resolution images is working fine

selv@selv-pc:~/tmp/topovar$ pkstat -mean -median -i slope_100KMmd_GMTEDmd.tif
--mean 0.69399 --median 0

but with high resolution is fail.

selv@selv-pc:~/tmp/topovar$ pkstat -mean -median -i slope_1KMmd_GMTEDmd.tif
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)

The same file with -mm

selv@selv-pc:~/tmp/topovar$ pkstat -mm -i slope_1KMmd_GMTEDmd.tif
-min 0 -max 79.7184

works

I'm using the latest version. Installed today.
Any idea
Best Giuseppe

Giuseppe Amatulli <el_selvaje>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by kempenep (Posted a comment)
  • -unavailable- added by el_selvaje (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 16 Oct 2016 09:13:42 PM UTCkempenepStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 25 May 2016 06:41:58 AM UTCkempenepStatusNone=>Confirmed
      Assigned toNone=>kempenep

    Back to the top


    Powered by Savane 3.1-cleanup1