Description Usage Arguments Details Value Note Author(s) See Also Examples
Functions that convert positions in decimal degrees latitude and
longitude to rectangle codes for statistical rectangles, their
subrectangles or rectangle codes in systems of various resolutions
as described below and relating to (see rect2deg
).
1 2 3 4 |
lat, lon |
Position(s) as decimal degrees latitude and longitude.
If |
dlat, dlon |
Rectangle height and width in degrees and minutes
latitude and longitude for |
startLat |
Starting latitude used in coding the rectangles. |
r2d
with a resolution of 30 min latitue and 1 deg
longitude (the Icelandic numbering system, 'tilkynningaskyldureitir').
sr2d
with a resolution of 15 min latitude by 30 min
longitude in the Icelandic numbering system for statistical rectangles
which starts counting at 60 deg N latitude, with sub-rectangles of 30
min lat by 1 deg lon coded 1, 2, 3 and 4 for the NW, NA, SW and SA
quadrants respectively
A small number (1e-06) is added to latitude and subtracted from longitude to ensure rectangle membership of positions on border are “logical” on the nw-hempisphere.
Vector of rectangle codes in the chosen coding system.
These functions could be made hemisphere-aware, and no attention has been given to making the functions work in the southern hemisphere, possibly with the option of specifying starting latitudes.
HB (d2r, d2sr
, STJ (d2mr, d2dr
).
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.