Learn R Programming

atpolR (version 0.1.1)

latlon_to_grid: latlon_to_grid(lat, lon, length) converts geographical coordinates to ATPOL grid of given length

Description

latlon_to_grid(lat, lon, length) converts geographical coordinates to ATPOL grid of given length

Usage

latlon_to_grid(lat, lon, length)

Value

grid, ex. BE, BE23, BE2357, etc.

Arguments

lat

Latitude in degrees, ex. 51.123456

lon

Longitude in degrees, ex. 17.234567

length

Desired ATPOL grid length, which can be 2, 4, 6, 8, 10 or 12,

References

https://atpol.sourceforge.io/

Examples

Run this code
latlon_to_grid(51, 17, 2)
latlon_to_grid(51, 17, 6)

Run the code above in your browser using DataLab