powered by
Internal function for cleaning coordinates' metadata provided by Ogimet
get_coord_from_string(txt, pattern = "Longitude")
string with coordinates from Ogimet
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
# NOT RUN { txt <- "12120: Leba (Poland)\nLatitude: 54-45N Longitude: 017-32E Altitude: 2 m." climate:::get_coord_from_string(txt, pattern = "Latitude") # } # NOT RUN { # }
Run the code above in your browser using DataLab