rect2deg: Given rectangle code return its center position.

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

Functions that convert statistical rectangle codes under: 1) a traditional Icelandic system ('tilkynningaskyldurreitakerfid') (see d2r and d2sr) and 2) set up in systems based on minutes and degrees (see d2mr and d2dr) to decimal representation of rectangles center positions in degreees latitude and longitude.

Usage

1
2
3
4
5
6
7
r2d(r)

sr2d(sr)

mr2d(mr, dlat = 5, dlon = 10)

dr2d(dr, dlat = 1, dlon = 2, startLat = 50)

Arguments

r

Rectangle code r in the 'tillkynningaskyldu-system', e.g from deg2rect.

sr

Rectangle code sr for subrectangle in 'tilkynningaskyldu-system', e.g. from deg2rect.

mr

Rectangle code mr based on minutes, e.g. from deg2rect.

dlat

Rectangle height in minutes or degrees latitude for mr2d and dr2d respectively.

dlon

As dlat except now width in longitude.

dr

Rectangle code dr based on degrees, e.g. from deg2rect.

startLat

Starting latitude for coding the rectangles.

Details

Value

dataframe of center positions (latitude lat and longitude lon) of rectangles in one of the coding systems

Note

Mostly used for plotting.

Author(s)

HB (for r, sr), STJ (for mr, dr).

See Also

deg2rect

Examples

1
2
r2d(d2r(lat = 65 + 1/4, lon = -19 - 1/2))
  d2r(r2d(519))

geo documentation built on May 29, 2017, 5:36 p.m.