icesSquare2coord {DATRAS}R Documentation

ICES square to Longitude/Latitude conversion.

Description

Calculate Longitude/Latitude pairs from ICES square.

Usage

  icesSquare2coord(x,
    format = c("corner", "midpoint", "polygons"))

Arguments

x

Vector of ICES square names.

format

Return points or polygons?

Details

Output from this function depends on argument format:

  1. format="corner": Return south-west corner of square.

  2. format="midpoint": Return midpoint of square.

  3. format="polygons": Return list of square polygons (suitable for polygon plot function).

Value

data.frame with coordinates or list of polygons.

Examples

icesSquare2coord(c("37G1","37G2"))
icesSquare2coord(c("37G1","37G2"),"polygons")

[Package DATRAS version 1.0 Index]