How can I simply access the information on raster "global attributes" (e.g., Title or Sensor - see the data structure bellow)?
Is it possible to get those information as the same as I got the extent and date infos (see bellow)?
ext <- raster[[1]]@extent # 1st day extent area
date = as.Date(as.numeric(raster[[1]]@z), origin = "1960-01-01", tz = "GMT", format = "%Y-%m-%d") # 1st day Date
Bellows is how my raster list is structured:
> raster[[1]]
class : RasterLayer
band : 1 (of 31 bands)
dimensions : 110, 74, 8140 (nrow, ncol, ncell)
resolution : 1, 1 (x, y)
extent : -42, 32, -55, 55 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0
data source : /data/input/raster.nc
names : var1
z-value : 20667.5
zvar : var1
> raster[1]
[[1]]
File /data/input/raster.nc (NC_FORMAT_CLASSIC):
2 variables (excluding dimension variables):
int var1[longitude,latitude,time]
units: nodimension
int var2[longitude,latitude,time]
units: nodimension
3 dimensions:
longitude Size:74
units: degrees east
long_name: Longitude
latitude Size:110
units: degrees north
long_name: Latitude
time Size:31
units: Julian days since 1960-1-01
6 global attributes:
Title: Rain Rate every 1 degree
Date Beg: 2016-08-01 00:00:00
Date End: 2016-08-31 23:59:59
Author: LastName, FirstName
Sensor: GEO
Conventions: CF-1.0