Description Usage Arguments Author(s) See Also Examples
Extracts a pre-defined region from '.gz'
-file and saves subset as a new '.gz'
-file (gzip compressed format). Basically it represents a combined call of regions, crop, raster2matrix and writebin.
1 | area_extrac(obj,area)
|
obj |
Character string indicating search criteria for |
area |
Character string identifying the region that should be extracted. |
Robert K. Bauer
readbin, writebin, crop, raster2matrix, param_unconvert
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Example 1: extract, write '.gz'-files, following default plot-procedure
library(raster)
# load sample-'.gz'-file
path <- system.file("test_files", package="oceanmap")
gz.files <- Sys.glob(paste0(path,'/*.gz'))[1] # load sample-'.gz'-files
print(gz.files)
# area_extrac(gz.files[1],area='lion')
# gz <- Sys.glob(path,'/medw4*.gz') # load new-'.gz'-file
# v(gz) # visualize new-'.gz'-file
# system(paste('rm', gz))
# v(gz.files[1],v_area='lion')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.