| records-class {rsat} | R Documentation |
A class object for satellite image metadata
Description
This class object organizes the attributes of satellite images' metadata from several missions/programs uniformly. Structuring the information facilitates managing, previewing, and downloading data records.
Details
records works as vector. It accepts usual R methods such as
c, [], length(), subset() or unique().
Each record (vector element) contains several parameters or slots.
The object can be coerced into a data.frame by
using the function as.data.frame(). The data.frame can
be transformed back into a records with the function
as.records().
Slots
satthe name of the satellite.
namethe name of the file.
datecapturing date of the image.
productname of the data product.
paththe path of the tiling system.
rowthe row of the tiling system.
tileidthe tile identification number.
downloadthe download url.
file_paththe saving directory for the satellite record.
previewthe preview url.
api_namethe name of the API.
orderboolean, whether the image needs to be ordered.
extent_crscoordinate reference system of the preview.
Examples
## Not run:
library(rsat)
# create a copy of navarre
file.copy(from=system.file("ex/Navarre",package="rsat"),
to=tempdir(),
recursive = TRUE)
# load example rtoi
navarre <- read_rtoi(file.path(tempdir(),"Navarre"))
rcrds <- records(navarre)
modis.rcrds <- rcrds[sat_name(rcrds)%in%"Modis"]
ls8.rcrds <- rcrds[sat_name(rcrds)%in%"Landsat-8"]
class(modis.rcrds)
dates(ls8.rcrds)
modis.ls8.records <- c(ls8.rcrds, modis.rcrds)
print(modis.ls8.records)
## End(Not run)