Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

USGS

import USGS spectra


Description

Import and download spectral data from USGS spectral library

Usage

USGS_get_available_files(url = NULL)

USGS_retrieve_files(avl = USGS_get_available_files(), 
                    pattern = NULL, retrieve = TRUE, 
                    loadAsSpeclib = TRUE, tol = 0.1)

Arguments

url

Character passing the url of the data. If NULL, the following URL is used: 'ftp://ftpext.cr.usgs.gov/pub/cr/co/denver/speclab/pub/spectral.library/splib06.library/ASCII/'

avl

List of available files. Typically the result of USGS_get_available_files.

pattern

Search pattern to define a subset of all available spectra.

retrieve

Logical. Should the data be downloaded?

loadAsSpeclib

Logical. If TRUE, an object of class "Speclib" is retured

tol

Discrepancy of the wavelength values between different spectra.

Author(s)

Lukas Lehnert

Examples

## Not run: 
## Retrieve all available spectra
avl <- USGS_get_available_files()

## Download all spectra matching "grass-fescue"
grass_spectra <- USGS_retrieve_files(avl = avl, pattern = "grass-fescue")

plot(grass_spectra)

## End(Not run)

hsdar

Manage, Analyse and Simulate Hyperspectral Data

v1.0.3
GPL
Authors
Lukas W. Lehnert [cre, aut] (<https://orcid.org/0000-0002-5229-2282>), Hanna Meyer [ctb], Joerg Bendix [ctb]
Initial release
2020-08-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.