setFileName: setFileName

setFileNameR Documentation

setFileName

Description

GUI for selecting from available projects and files

Usage

setFileName(Project = NA, Flight = NA)

Arguments

Project

The character-name of the project. If provided, the function proceeds to display the files in that project directory. Otherwise, if "Project" is omitted or NA (the default) a set of available projects is displayed. Click on one to select it.

Flight

A character name specifying the data file. If omitted, a list of available files will be displayed from which you can select the file by clicking on the button. If omitted, '.nc' will be appended to the name. If "Flight" is specified as, for example, "rf01", the name will be modified by prefixing the name of the project; e.g., CSETrf01.nc

Details

Generates a set of buttons from which to select the project, and then another set from which to select the data file. Clicking on the buttons selects that item.

Value

A character variable specifying the location of the data.file, suitable for use in "getNetCDF()" or "DataFileInfo()".

Author(s)

William Cooper

Examples

## Not run: setFileName("CSET", "CSETrf05.nc")

NCAR/Ranadu documentation built on Jan. 27, 2023, 1:09 a.m.