area_extrac {oceanmap} | R Documentation |
Extracts a pre-defined region from '.gz'
-file and saves subset as a new '.gz'
-file
Description
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.
Usage
area_extrac(obj,area)
Arguments
obj |
Character string indicating search criteria for |
area |
Character string identifying the region that should be extracted. |
Author(s)
Robert K. Bauer
See Also
readbin, writebin, crop, raster2matrix, param_unconvert
Examples
## 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')
[Package oceanmap version 0.1.6 Index]