Learn R Programming

RGISTools (version 1.0.2)

senGetOrbit: Return the relative orbit of the Sentinel-2 satellite

Description

senGetOrbit reads the official name of a Sentinel image and returns relative orbit, in "NXXXX_RYYY" or "RYYY" format (Sentinel namig convention).

Usage

senGetOrbit(str)

Arguments

str

the full path(s) or official name(s) of the Sentinel images from which the orbits are retrieved.

Value

an string with the relative orbit of the image in "NXXXX_RYYY" or "RYYY" format, depending on the version of name convention.

Details

Get information about the relative orbits here.

Examples

Run this code
# NOT RUN {
#example of getting date from Sentinel2 image name
files.sen <- c("S2A_MSIL1C_20170102T111442_N0204_R137_T30TWN_20170102T111441.SAFE",
               "S2A_OPER_PRD_MSIL1C_PDMC_20160308T090616_R094_V20160305T110109_20160305T110109")
tile.sen <- senGetOrbit(files.sen)
print(tile.sen)

# }

Run the code above in your browser using DataLab