gedih3.cli.gh3_list_resolutions#

Display H3 hexagon or EGI (EASE Grid Index) resolution levels and their characteristics.

Shows average edge length, area, and number of cells for each H3 resolution, or pixel size and description for each EGI level, helping users choose appropriate resolution and partition levels.

Attributes#

Functions#

format_number(n)

Format large numbers with commas

format_area(area_km2)

Format area with appropriate units

format_edge(edge_km)

Format edge length with appropriate units

get_h3_resolution_info(→ dict)

Get H3 resolution characteristics from h3 library.

get_egi_resolution_info(→ dict)

Get EGI resolution characteristics.

get_cmd_args()

Parse command line arguments

display_h3_resolutions(args)

Display H3 resolution table

display_egi_resolutions(args)

Display EGI resolution table

main()

Module Contents#

gedih3.cli.gh3_list_resolutions.format_number(n)[source]#

Format large numbers with commas

gedih3.cli.gh3_list_resolutions.format_area(area_km2)[source]#

Format area with appropriate units

gedih3.cli.gh3_list_resolutions.format_edge(edge_km)[source]#

Format edge length with appropriate units

gedih3.cli.gh3_list_resolutions.get_h3_resolution_info(res: int) dict[source]#

Get H3 resolution characteristics from h3 library.

Parameters:
resint

H3 resolution level (0-15)

Returns:
dict

Dictionary with edge_km, area_km2, and cells count

gedih3.cli.gh3_list_resolutions.EGI_DESCRIPTIONS#
gedih3.cli.gh3_list_resolutions.get_egi_resolution_info(level: int) dict[source]#

Get EGI resolution characteristics.

Parameters:
levelint

EGI resolution level (1-12)

Returns:
dict

Dictionary with resolution_m and description

gedih3.cli.gh3_list_resolutions.get_cmd_args()[source]#

Parse command line arguments

gedih3.cli.gh3_list_resolutions.display_h3_resolutions(args)[source]#

Display H3 resolution table

gedih3.cli.gh3_list_resolutions.display_egi_resolutions(args)[source]#

Display EGI resolution table

gedih3.cli.gh3_list_resolutions.main()[source]#