Learn R Programming

RGISTools (version 0.9.7)

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

Description

senGetOrbit reads the official name of a Sentinel image and returns relative orbit. Get relative orbit information here.

Usage

senGetOrbit(str)

Arguments

str

the full path or official image name of the Sentinel image from which the relative orbit is extracted.

Value

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

Examples

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

# }

Run the code above in your browser using DataLab