Description Usage Arguments Details Value
View source: R/amlr_deployment.R
Extract deployment time and location from AERD L1 data
1 | amlr_deployment(file.l1, n = 1, na.start.skip = TRUE)
|
file.l1 |
file path for AMLR L1 nc file |
n |
numeric; number of lat/lon positions to print. Default is 1 |
na.start.skip |
logical; indicates if |
The purpose of this function is to extract and print the deployment time and
position for file.l1
, which is expected to be an AMLR L1 file.
This deployment info is 1) the minimum value in the 'time' variable and
2) the first one or more recorded positions to determine the approximate deployment location.
For positions, this function extracts data for the variables 'latitude' and 'longitude'.
For this function, 'front' (e.g. front rows with NA
lat/lon data)
means before the first record with non-NA
lat and lon data.
A named list of 1) the minimum value for the 'time' variable (with NA
s removed) and
2) a data frame with 'lat' and 'lon' columns that contains the first n
rows
of latitude and longitude values, respectively, from file.l1.
.
The names of these elements are 'deployment_time' and 'deployment_position', respectively.
If na.start.skip
is TRUE
, then front rows
with NA
lat or lon values are removed before returning the first n
rows.
See Details for a description of 'front'
A warning is printed if any of the printed coordinates are not south of 58 deg S and between 70 deg W and 50 deg W.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.