return the expected name for the NetCDF footprint
Usage
obs_footname(
time = NULL,
year,
month,
day,
hour,
minute,
second,
lat,
lon,
alt,
fullpath = FALSE,
out,
...
)Arguments
- time
POSIXct time to extract time variblaes
- year
numeric number
- month
numeric number
- day
numeric number
- hour
numeric number
- minute
numeric number
- second
numeric number, optional
- lat
numeric number
- lon
numeric number
- alt
numeric number
- fullpath
Logical, to add or not YYYY/MO/hysplit to id
- out
outfile path.
- ...
data.table::fwrite arguments.
Note
source https://stackoverflow.com/a/47015304/2418532
# IMPORTANT!!! # This function will generate the expected NetCDF file name. # It assumes that the name was generated under the following considerations: # time variables (year, month, day, etc) have a format of two digits, eg "0.1" # latitude and longitude have been round with 4 decimals # The format for latitude is 2 integers, a point and 4 decimals # The format for longitude is 3 integers, a point and 4 decimals
See also
Other helpers:
fex(),
obs_format(),
obs_freq(),
obs_list.dt(),
obs_out(),
obs_rbind(),
obs_read_csvy(),
obs_roundtime(),
obs_trunc(),
obs_write_csvy(),
rtorf-deprecated,
sr()
Examples
if (FALSE) { # \dontrun{
# Do not run
obs_footname(time = Sys.time(),
second = data.table::second(Sys.Time()),
lat = 0,
lon = 0,
alt = 0)
obs_footname(year = 2020,
month = 12,
day = 30,
hour = 9,
minute = 54,
lat = 3.2133,
lon = 30.9131,
alt = 497,
fullpath = TRUE)
obs_footname(year = 2020,
month = 12,
day = 30,
hour = 9,
minute = 54,
lat = 1,
lon = -130.9131,
alt = 497,
fullpath = TRUE)
} # }
