landsat_parse_filename_image: Extract Information from Landsat Filenames

Description Usage Arguments Value References Examples

View source: R/landsat_files.R

Description

Uses Landsat filenames (that perhaps were listed using landsat_list_images or landsat_list_archives) to fill in data that are present in the filename.

Usage

1
2
3
4
5

Arguments

path

Filenames or file paths that are valid Landsat GeoTIFF files.

Value

A data.frame with the same number of rows as the length of path.

References

https://landsat.usgs.gov/what-are-naming-conventions-landsat-scene-identifiers

Examples

1
2
3
4
5
6
7
8
9
landsat_parse_product_id("LT05_L1TP_063013_19960711_20170104_01_T1")
landsat_parse_filename_archive("LT05_L1TP_063013_19960711_20170104_01_T1.tar.gz")
landsat_parse_filename_image("LT05_L1TP_063013_19960711_20170104_01_T1_B1.TIF")

landsat_images <- landsat_list_images()
landsat_parse_filename_image(landsat_images)

landsat_archives <- landsat_list_archives()
landsat_parse_filename_archive(landsat_archives)

paleolimbot/landsatutils documentation built on May 24, 2019, 6:14 a.m.