Read a ED_MET_DRIVER_HEADER file into a list-like object that can be manipulated within R. Returns a list of file formats.
Details
The output is an unnamed list with each element corresponding to a single file format. Each file format contains the following elements:
path_prefix– Path and prefix of filesnlon– Number of longitude grid cellsnlat– Number of latitude grid cellsdx– Size of longitude grid celldy– Size of latitude grid cellxmin– Minimum longitudeymin– Minimum latitudevariables– Data frame of variables, with the columns described below. Starred columns are required for writing. This table is left joined with met_variable_description and met_flag_description.variable– Variable namedescription– Variable descriptionunit– Variable unitupdate_frequency– Update frequency (seconds) or scalar values ifflag=4flag– Variable flags.flag_description– Description of variable flag
The formatting of a meteorology header file is as follows (from the ED GitHub Wiki):
<number of file formats> # Repeat lines below this number of times
<path and prefix of files>
<nlon>, <nlat>, <dx>, <dy>, <xmin>, <ymin>
<number of variables>
<list of variable names>
<list of update frequencies (seconds) or scalar values if flag=4>
<list of variable flags>The variables in the third row are defined as follows: