| a5_resolution_stats | R Documentation |
Properties of the grid at a resolution, independent of any particular cell:
a5_cell_area(resolution, units = "m^2")
a5_cell_edge_length_avg(resolution, units = "m")
a5_get_num_cells(resolution)
a5_get_num_children(parent_resolution, child_resolution)
resolution |
Integer vector of resolutions (0–30). A scalar for
|
units |
Character scalar giving the output unit: an area unit for
|
parent_resolution, child_resolution |
Integer scalars (0–30), with
|
a5_cell_area(): the area of one cell. A5 is an equal-area grid, so
every cell at a resolution has the same area.
a5_cell_edge_length_avg(): the average cell edge length. Individual
edges vary from this by roughly +/-10%, depending on the cell's shape
and position; use a5_cell_to_boundary() to measure a specific cell.
a5_get_num_cells(): the number of cells covering the globe.
a5_get_num_children(): the number of descendants each cell has at a
finer resolution, as returned by a5_cell_to_children().
Use the first two to choose a resolution for a target cell size.
a5_cell_area(), a5_cell_edge_length_avg(): a units::units vector
the length of resolution, or numeric when units = NULL.
a5_get_num_cells(), a5_get_num_children(): a numeric scalar. Counts
are doubles because they can exceed R's integer range.
a5_cell_area(0:5)
a5_cell_area(5, units = "km^2")
a5_cell_edge_length_avg(10, units = "km")
a5_get_num_cells(10)
a5_get_num_children(5, 8) # 4^3 = 64
# cells at a resolution times their area covers the globe
a5_get_num_cells(10) * a5_cell_area(10, units = "km^2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.