Learn R Programming

RStoolbox (version 0.1.1)

readEE: Tidy import tool for EarthExplorer .csv export files

Description

Imports 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.

Value

  • data.frame

Details

The http://earthexplorer.usgs.gov/{EarthExplorer} CSV file can be produced from the search results page. Above the results click on 'export results' and select 'comma (,) delimited'.

Examples

Run this code
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)")

Run the code above in your browser using DataLab