Description Usage Arguments Details Examples
After running sequentially get_lon180
or
test_geocoord
and get_country
,
get_country_shoreline
and/or get_sea
to assign
the geographic names, this function uses the output of those. It combines by
row the data frames with a description - geographic name or indication of
some problem with the coordinates (if that occurs) - and orders the data by
the same order as in the input text file or data frame (given by the user,
with the list of coordinates).
1 2 | order_data(countries, countries_sh = NULL, seas = NULL, miss_seas =
NULL, excl_coords = NULL)
|
countries |
data frame output of |
countries_sh |
data frame output of |
seas |
data frame output of |
miss_seas |
data frame output of |
excl_coords |
data frame output of |
Input:
The output of get_country
- 'countries' -,
get_country_shoreline
- 'countries_sh' -,
get_sea
- 'seas' and 'miss_seas' - and
get_lon180
or test_geocoord
-
'excl_coords'. However, only the 'countries' data frame is
compulsory because all those data frames may not exist.
Output:
A text file with the coordinate pairs by the inicial order and the respective geographic name. That file has the following header: id | lon | lat | geo_name. If a country or sea name could not be assigned because of the polygon's data set lack of coverage, the description in the field 'geo_name' will be 'MISSING_NAME'. If a name could not be assigned because the coordinates are missing or out of bounds, the description will be 'ERRONEOUS-MISSING_COORDS'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
##
## First run
get_lon180(coords = ispd)
## Or
test_geocoord(coords = eraclim_uao_fp)
## Then run sequentially:
get_country(icoords = coords_ok)
get_country_shoreline(icoords = miss_countries, tol)
get_sea(icoords = miss_countries_sh)
## And finally
## For the ISPD case
order_data(countries = countries, countries_sh = countries_sh, seas = seas)
## For the ERACLIM_UAO_FP
order_data(countries = countries, countries_sh = countries_sh, seas = seas,
excl_coords = excl_coords)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.