u_dateR creates a data frame of paths, folder names and dates from the contents of a folder.

u_dateR(path, archive, pat = ".jpeg")

Arguments

path

Character string filepath to the path/row of satellite imagery to check. Can also be a folder of jpegs or some other date named files.

archive

A logical scalar. TRUE will assume path is indicating RSSA internal USGS archive. FALSE can be used when querying a QA jpeg folder or the like.

pat

Pattern to search for in a non-USGS imagery archive. Defaults to ".jpeg".

Value

For a USGS imagery archive the query will return a data frame with:

  • path - a column of character string file paths

  • folds - a column of character string folder names

  • dates - a column of date class dates

For a non-USGS archive the query will return a data frame with:

  • path - a column of character string file paths

  • folds - a column of character string folder names

Details

This output of this function will hold paths, folder names and dates that will be used for other functions such as jpegR and extractR.

Examples

# NOT RUN {
u_dateR(path = "W:/usgs/115078", archive = TRUE)
u_dateR(path = "Z:/DEC/working/QA...", archive = FALSE, pat = ".jpeg")
# }