View source: R/as.data.frame.R
as.data.frame.vp | R Documentation |
vp
) or time series of vertical profiles
(vpts
) to a data frameConverts a vertical profile (vp
) or a time series of vertical profiles
(vpts
) to a data frame containing all quantities per datetime and height.
Has options to include latitude/longitude/antenna height (parameter geo
)
and day/sunrise/sunset (parameter suntime
).
## S3 method for class 'vp'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
geo = TRUE,
suntime = TRUE,
lat = NULL,
lon = NULL,
elev = -0.268,
...
)
## S3 method for class 'vpts'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
geo = TRUE,
suntime = TRUE,
lat = NULL,
lon = NULL,
elev = -0.268,
...
)
x |
A |
row.names |
|
optional |
Logical. If |
geo |
Logical. When |
suntime |
Logical. When |
lat |
Numeric. Radar latitude in decimal degrees. When set, overrides
the latitude stored in |
lon |
Numeric. Radar longitude in decimal degrees. When set, overrides
the longitude stored in |
elev |
Numeric. Sun elevation in degrees, used for
|
... |
Additional arguments to be passed to or from methods. |
Note that only the dens
quantity is thresholded for radial velocity
standard deviation by sd_vvp_threshold()
. This is different from the
default plot.vp()
, plot.vpts()
and get_quantity()
functions, where
quantities eta
, dbz
, ff
, u
, v
, w
, dd
are all thresholded by
sd_vvp_threshold()
.
A data.frame
object, containing radar, datetime and height as rows
and all profile quantities as columns, complemented with some oft-used
additional information (columns lat
, lon
, height_antenna
, day
,
sunrise
, sunset
).
summary.vpts()
# Convert vp object to a data.frame
vp_df <- as.data.frame(example_vp)
# Print data.frame
vp_df
# Convert vpts object to a data.frame
vpts_df <- as.data.frame(example_vpts)
# Print the first 5 rows of the data.frame
vpts_df[1:5, ]
# Do not add lat/lon/height_antenna information
vpts_df <- as.data.frame(example_vpts, geo = FALSE)
# Do not add day/sunrise/sunset information
vpts_df <- as.data.frame(example_vpts, suntime = FALSE)
# Override the latitude/longitude information stored in the object when
# calculating sunrise/sunset information
vpts_df <- as.data.frame(example_vpts, lat = 50, lon = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.