Description Usage Arguments Details Value Author(s) References See Also Examples
An input raster is converted to a raster of estimated distances from the sea.
1 | coastal(dtm, nosea, notsea = 2)
|
dtm |
A raster with a specified projection, where any sea is represented by NA values. |
nosea |
Value to be used (km) if dtm contains no NA values. See details for the default. |
notsea |
Approximate width (km) that NA regions should exceed in order to be counted as sea. This determines the map resolution that will be used, so only gives approximate control (bands of width >= 2*notsea will definitely be counted as sea). If sea appears at the edge of |
If the raster supplied contains regions of NA values at least 2km wide, these will be interpreted as sea and the returned raster comprises the distance of each cell that was not NA from the nearest sea. Otherwise, the value "nosea" will be used to fill the whole raster, or if it is missing, the diagonal dimension of the raster will be used as a (bad) guess.
A raster of distances (in kilometres) from the sea, with the same properties as dtm.
Richard Gunton
Gunton et al. (submitted) "Predicting ground temperatures across European landscapes"
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.