readEE: Tidy import tool for EarthExplorer .csv export files

View source: R/readEE.R

readEER Documentation

Tidy import tool for EarthExplorer .csv export files

Description

Imports and tidies CSV files exported from EarthExplorer into data.frames and annotates missing fields.

Usage

readEE(x)

Arguments

x

Character, Character or list. One or more paths to EarthExplorer export files.

Details

The EarthExplorer CSV file can be produced from the search results page. Above the results click on 'export results' and select 'comma (,) delimited'.

Note that only a subset of columns is imported which was deemed interesting. Please contact the maintainer if you think an omited column should be included.

Value

data.frame

Examples

library(ggplot2)
ee <- readEE(system.file("external/EarthExplorer_LS8.txt", package = "RStoolbox"))

## Scenes with cloud cover < 20%
ee[ee$Cloud.Cover < 20,]

## Available time-series
ggplot(ee) + 
     geom_segment(aes(x = Date, xend = Date, y = 0, yend = 100 - Cloud.Cover, 
     col = as.factor(Year))) +
        scale_y_continuous(name = "Scene quality (% clear sky)")


bleutner/RStoolbox documentation built on Nov. 30, 2024, 9:47 p.m.