RoundCoordinates: RoundCoordinates

Description Usage Arguments Value Examples

Description

This function will round the inputed value to a co-ordinate present in the KG Climate Zone look up table.

Usage

1
RoundCoordinates(number, res = "course", latlong = "lat")

Arguments

number

The value to round

res

Specify the resolution as a string - 'course' for lower resolution (default, 0.5 degrees), 'fine' for higher resolution (100s).

latlong

Whether the number is a latitude value ('lat', default), or longitude value ('lon') (this parameter is only used if res='fine').

Value

The inputed number, rounded to a value ending in either .25 or .75 (course), or to nearest 'fine' (100s) resolution grid point.

Examples

1
2
RoundCoordinates(10.98)
RoundCoordinates(10.98,res='fine',latlong='lon')

kgc documentation built on May 2, 2019, 1:47 p.m.