Skip to contents

Creates a 'dggridR'-compatible grid specification from a hexify_grid object. The resulting object can be used with 'dggridR' functions that accept a dggs object.

Usage

as_dggrid(grid)

Arguments

grid

A hexify_grid object from hexify_grid()

Value

A list with 'dggridR'-compatible fields:

pole_lon_deg

Longitude of icosahedron vertex 0 (standard 11.25)

pole_lat_deg

Latitude of icosahedron vertex 0 (standard 58.282525588538995)

azimuth_deg

Azimuth of vertex 1 seen from vertex 0 (standard 0)

aperture

Grid aperture (3, 4, or 7)

res

Resolution level

topology

Grid topology ("HEXAGON")

projection

Face projection ('ISEA' or 'FULLER')

precision

Output decimal precision (default 7)

Details

A dggs carries no body radius, so a grid built on another body cannot be expressed as one: 'dggridR' reads every dggs on Earth's radius, and its areas, spacings and CLS come back on Earth. Converting such a grid warns.

See also