# NOT RUN {
# load example vertical profile time series:
data(example_vpts)
example_vpts
# select profiles later than 02-Sep-2016
filter_vpts(example_vpts, min = "2016-09-02")
# select the profile nearest to 2016-09-01 03:00 UTC:
filter_vpts(example_vpts, nearest = "2016-09-01 03:00")
# select profiles between than 1 and 3 UTC on 02-Sep-2016:
filter_vpts(example_vpts, min = "2016-09-02 01:00", max = "2016-09-02 03:00")
# select day time profiles (day time periods from sunrise to sunset)
filter_vpts(example_vpts, night=FALSE)
# select night time profiles, with nights starting starting and ending at civil twilight
# (when the sun is 6 degrees below the horizon):
filter_vpts(example_vpts, night=TRUE, elev = -6)
# select night time profiles from 3 hours after sunset to 2 hours before sunrise
filter_vpts(example_vpts, night=TRUE, offset=c(3,-2)*3600)
# }
Run the code above in your browser using DataLab