read_cli | R Documentation |
Reads a Water Erosion Prediction Project (WEPP) climate (*.cli) file. This file contains climate information.
Reads climate file header information including version, settings, station, location, averages, and precipitation data that may or may not include breakpoints.
CLIGEN climate files either have breakpoints that indicate rainfall on sub-daily time frames or have daily summaries only. This function will read a climate file that has breakpoints and return a list containing climate file information including daily summaries as well as breakpoint information.
read_cli(file, breakpoints = NULL)
read_cli_raw(file)
extract_breakpoints(precip_with_breakpoints)
file |
A path to the file. |
precip_with_breakpoints |
data.frame containing precipitation data and breakpoints |
cligen_settings
is a vector with the following named elements:
1 - continuous simulation, 2 - single storm
0 - no breakpoints, 1 - breakpoints
0 - wind information exists, 1 - no wind information exists
location
is a vector with the following named elements:
degrees latitude (+ is North, - is South)
degrees longitude (+ is East, - is West)
station elevation (m)
weather station years of observation
beginning year of CLIGEN simulation
number of climate years simulated and in file
averages
is a data.frame
with 12 rows and the following columns:
1 - January, 2 - February, etc
average maximum temperature (C) for the month
average minimum temperature (C) for the month
average daily solar radiation (langleys)
average precipitation (mm)
These averages do not match the averages calculated from precip
.
precip
is a data.frame
containing the following columns:
numeric, day of the month
numeric, month
numeric, year
numeric, daily precipitation amount (mm)
numeric, duration of precipitation (hr)
numeric, ratio of time to rainfall peak/rainfall duration
numeric, ratio of maximum rainfall intensity/average rainfall intensity
numeric, daily temperature maximum (degrees C)
numeric, daily temperature minimum (degrees C)
numeric, daily solar radiation (landleys/day)
numeric, wind velocity (m/sec)
numeric, wind direction (degrees from North)
numeric, dew point temperature (degrees C)
breakpoints
is a data.frame
containing the following columns:
numeric, day of the month
numeric, month
numeric, year
time since midnight HH.MM
cumulative precipitation (mm) since midnight
A list containing the following elements:
numeric, CLIGEN version, e.g. 4.30
numeric,
character, name of station
numeric
numeric, monthly average
numeric, daily precipitation
numeric, (optional) sub-daily precipitation
A list containing two elements: precip and breakpoints
https://www.ars.usda.gov/ARSUserFiles/50201000/WEPP/usersum.pdf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.