Learn R Programming

UKFE (version 0.2.2)

ImportCDs: Import catchment descriptors from .CD3 files

Description

Imports catchment descriptors from CD3 files either from an FEH webservice download or from the Peakflows dataset downloaded from the national river flow archive (NRFA) website

Usage

ImportCDs(x)

Value

A data.frame with columns; Descriptor and Value.

Arguments

x

the CD3 file path

Author

Anthony Hammond

Details

The CD3 files downloaded from the FEH webserver are formatted differently from the CD3 files of the peak flows dataset, this function is coded to import either, given the correct file path. File paths for importing data require forward slashes. On some operating systems, such as windows, the copy and pasted file paths will have backward slashes and would need to be changed accordingly.

Examples

Run this code
#Import catchment descriptors from a NRFA peakflows CD3 file and display in console
if (FALSE) CDs.4003 <- ImportCDs("C:/Data/NRFAPeakFlow_v9/Suitable for QMED/4003.CD3", web = FALSE)
if (FALSE) CDs.4003
#Import catchment descriptors from a FEH webserver CD3 file and display CDs in the console
if (FALSE) CDs.MySite <- ImportCDs("C:/Data/FEH_Catchment_384200_458200.CD3")

Run the code above in your browser using DataLab