Description Usage Arguments Details Examples
Function downloads the requested GlobColour product, given as file directories created by gc_get_option
.
1 | gc_get_colour(query, openFile = FALSE)
|
query |
character or vector giving the file directories. |
openFile |
logical, if TRUE, function opens previously downloaded file (see Details). If FALSE, files are saved to working directory (default). |
Required file directories can either be generated by gc_get_colour
or, if known, manually created. Note
that the quantity of file directories is dramatically correlated with download time.
If openFile
is set TRUE the function creates a temporary file (see tempfile
), which is immediately opend after
download (see Examples). Method requires length(query) < 2
. For further details see nc_open
and readPNG
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
#Provide user information
gc_set_user("ftp_gc_DDummy", "DDummy_1234")
#Create directory for quick-look-file.png
qu <- gc_get_option(zone = "GLOB",
sens = "merged",
binp = "day",
date = "2017/08/19",
type = "KD490",
fext = "png")
#Download and assign file to object
test <- gc_get_colour(qu, openFile = TRUE)
#Plotting
grid::grid.raster(test)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.