Raster image (ursaRaster) contains embedded spatial parameters (ursaGrid) in item $grid. These functions manipulate with item $grid.
ursaRaster
ursaGrid
$grid
ursa_grid(obj) ursa_grid(obj) <- valueursa_ncol(obj) ursa_nrow(obj) ursa_columns(obj) ursa_rows(obj) ursa_samples(obj) ursa_lines(obj)ursa_extent(obj) ursa_bbox(obj)
ursa_ncol(obj) ursa_nrow(obj) ursa_columns(obj) ursa_rows(obj) ursa_samples(obj) ursa_lines(obj)
ursa_extent(obj) ursa_bbox(obj)
ursaRaster object. For ursa_grid function list of ursaRaster objects is allowed
ursa_grid
list
ursaGrid object
ursa_grid return value of $grid item of ursaRaster object.
ursa_grid<- return ursaRaster with modified $grid item.
ursa_grid<-
ursa_ncol, ursa_columns, ursa_samples return integer of length 1.
ursa_ncol
ursa_columns
ursa_samples
ursa_nrow, ursa_rows, ursa_lines return integer of length 1.
ursa_nrow
ursa_rows
ursa_lines
ursa_extent, ursa_bbox return numeric of length 4 (xmin, ymin, xmax, ymax).
ursa_extent
ursa_bbox
ursa_grid<- may used to minor corrections of spatial parameters. Howevert, it seems that this function is not claimed in practice.
ursa_ncol, ursa_columns, ursa_samples are synonyms for extracting number of columns/samples.
ursa_nrow, ursa_rows, ursa_lines are synonyms for extracting number of rows/lines.
ursa_extent, ursa_bbox, are synonyms for extracting boundary box (spatial extent).
# NOT RUN { session_grid(NULL) a <- pixelsize() print(ursa_grid(a)) ursa_grid(a)$proj4 <- gsub("\\.0+","",ursa_grid(a)$proj4) print(ursa_grid(a)) # }
Run the code above in your browser using DataLab