RoundCoordinates {kgc} | R Documentation |
RoundCoordinates
Description
This function will round the inputed value to a co-ordinate present in the KG Climate Zone look up table.
Usage
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
RoundCoordinates(10.98)
RoundCoordinates(10.98,res='fine',latlong='lon')
[Package kgc version 1.0.0.2 Index]