Geoinformatica  0.90
Global.pm
Go to the documentation of this file.
1 #** @file Dialogs.pm
2 # @brief Adds global operations into Geo::Raster
3 #*
4 
5 package Geo::Raster;
6 
7 use strict;
8 
9 #** @method void set($value)
10 #
11 # @brief Global set to a value.
12 #*
13 
14 #** @method $min()
15 #
16 # @brief Global minimum.
17 #*
18 
19 #** @method $max()
20 #
21 # @brief Global maximum.
22 #*
23 
24 #** @method $count()
25 #
26 # @brief The number of cells with defined values.
27 # @return Returns the count of cells without <I>no data</I> values.
28 #*
29 sub count {
30  my $self = shift;
31  return ral_grid_count($self->{GRID});
32 }
33 
34 #** @method $sum()
35 #
36 # @brief Global sum.
37 #*
38 sub sum {
39  my($self) = @_;
40  return ral_grid_sum($self->{GRID});
41 }
42 
43 #** @method $mean()
44 #
45 # @brief Global mean.
46 #*
47 sub mean {
48  my $self = shift;
49  return ral_grid_mean($self->{GRID});
50 }
51 
52 #** @method $variance()
53 #
54 # @brief Global variance.
55 #*
56 sub variance {
57  my $self = shift;
58  return ral_grid_variance($self->{GRID});
59 }
60 
61 1;
long RAL_CALL ral_grid_count(ral_grid *gd)