#include <math.h>
#include <grass/gis.h>
#include "pi.h"
Go to the source code of this file.
Functions | |
int | G_begin_zone_area_on_sphere (double r, double s) |
initialize calculations for sphere | |
double | G_darea0_on_sphere (register double lat) |
double | G_area_for_zone_on_sphere (register double north, register double south) |
area between latitudes |
double G_area_for_zone_on_sphere | ( | register double | north, | |
register double | south | |||
) |
area between latitudes
Returns the area between latitudes north and south scaled by the factor s passed to G_begin_zone_area_on_sphere.
north | ||
south |
Definition at line 55 of file area_sphere.c.
References G_darea0_on_sphere().
int G_begin_zone_area_on_sphere | ( | double | r, | |
double | s | |||
) |
initialize calculations for sphere
Initializes raster area calculations for a sphere. The radius of the sphere is r and s is a scale factor to allow for calculations of a part of the zone (see G_begin_zone_area_on_ellipsoid).
r | ||
s |
Definition at line 24 of file area_sphere.c.
References PI.
Referenced by G_begin_cell_area_calculations().
double G_darea0_on_sphere | ( | register double | lat | ) |
Definition at line 32 of file area_sphere.c.
References Radians, and sin().
Referenced by G_area_for_zone_on_sphere(), and G_begin_cell_area_calculations().