getRAFData | R Documentation |
Prepares RAF netCDF data, in data.frame, for FTP download
getRAFData( .Rdata = "Temp", .Directory = NA, .Project, .Flight, .Start = 0, .End = 0, .VarList = NA, .F = 0 )
.Rdata |
The name to be given to the data file placed on $FTP. Example: "Temp" to get "Temp.Rdata". Default "Temp". |
.Directory |
The root directory for the data, e.g., /scr/raf/ProdData or /scr/raf_data (character string). Default is DataDirectory (). |
.Project |
Project Name (e.g., "CONTRAST") – a directory on /scr/raf_data (character string) |
.Flight |
Flight name (e.g., "rf05") (character string) |
.Start |
Start time in HHMMSS format (numeric); default is the first time in the file |
.End |
End time in HHMMSS format (numeric); default is the last time in the file |
.VarList |
List of variables to include in the file (vector of character strings), default is the list of variables provided by 'standardVariables()'. |
.F |
A numeric flight number to include in the data frame as 'RF'. Defaults to 0 and, if 0, is not included. |
For specified variables and time period, constructs a data.frame, saves it in Rdata format, and places it on $FTP with a supplied name. This is probably not generally useful but is used by the author to facilitate data transfers to a home computer while reducing the size of the file that is transferred and avoiding the need to do this via VPN. If $FTP does not exist, the script attempts to put the file on "/net/ftp/pub/temp/users/cooperw" and will likely fail for users other than the author, so it is important to set $FTP to use this routine. CAVEAT: This script will overwrite the output file without warning.
The full address where the compressed Rdata file was saved, or NULL in case of failure.
William Cooper
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.