Description Usage Arguments Value
This function is used to query a specific raster product in the FAO Gismanager. Because data sets within the database vary greatly bettween the different collection this function uses an easily abstractable pattern for the query. This scheme follows the simple pattern of what you want to download, when is the timeperiod you are interested in, and where is the region you want to download.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
collection |
A length one charachter vector indication the collection where the queried product is found. |
product |
A length one character vector indicating the desired product to download. |
dimensions |
A list object specifying the dimensions of the product expect
of the time and measurment dimensions. Any other dimensions needs to be specified
in the form of |
aoi |
An sf object which bounding box is used to clip the raster extent. This is only relevant for regional or global datasets when clipping is desired. Simply omit this option when you want to download a complete dataset (e.g. a global dataset or a very local dataset such as WAPOR L3 data). The function will issue a warning in these cases that the extent was set to global/regional. |
begin |
A length one character in the form of |
end |
A length one character in the form of |
APIkey |
A length one charachter containing your API key. Can be obtained in the profile section at https://wapor.apps.fao.org. |
outdir |
A length one character vector with an existing directory. Any output files will be written here. |
cutline |
A logical indicating whether the resulting raster should be cut
to the bounding box of the |
tiled |
Logical whether the resulting raster file should be tiled. |
compressed |
Logical to indicate if the resulting raster should be compressed using LZW. |
overviews |
Logical to indicate if overviews for the resulting raster should be created. |
sleep_time |
A numeric value indicating the length of time R sleeps when checking for the availability of the result in seconds. Depending on the size of the queried raster (e.g. global extent at high spatial resolution) it might be a good idea to increase the sleep time. Defaults to 10 seconds. |
nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.