amlr_deployment: Extract deployment information

Description Usage Arguments Details Value

View source: R/amlr_deployment.R

Description

Extract deployment time and location from AERD L1 data

Usage

1
amlr_deployment(file.l1, n = 1, na.start.skip = TRUE)

Arguments

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 NA lat/lon data should be removed from the front of the lat/lon data. Default is TRUE

Details

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.

Value

A named list of 1) the minimum value for the 'time' variable (with NAs 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.


smwoodman/amlrGlider documentation built on March 29, 2021, 7:28 p.m.