View source: R/get_coord_from_string.R
get_coord_from_string | R Documentation |
Internal function for cleaning coordinates' metadata provided by Ogimet
get_coord_from_string(txt, pattern = "Longitude")
txt |
string with coordinates from Ogimet |
pattern |
which element (Longitude or Latitude) to extract |
The returned object is the geographic coordinates using WGS84 (EPSG:4326) in decimal format. Negative values mean western or southern Hemisphere
txt = "12120: Leba (Poland)\nLatitude: 54-45N Longitude: 017-32E Altitude: 2 m." climate:::get_coord_from_string(txt, pattern = "Latitude")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.