Generate options for vfld and vobs files
Usage
vfile_opts(
type = c("vfld", "vobs"),
missing_value = -99,
synop_cols = NULL,
temp_cols = NULL
)
Arguments
- type
Type of vfile - "vfld" or "vobs"
- missing_value
Missing value indicator. Default is -99.0
- synop_cols
For vfld/vobs version < 4 the column names in the files are assumed. Use
synop_cols
to override the defaults for SYNOP data. Note that the variable names used here must be valid vfld/vobs names.- temp_cols
For vfld/vobs version < 4 the column names in the files are assumed. Use
temp_cols
to override the defaults for TEMP data. Note that the variable names used here must be valid vfld/vobs names.
Examples
vfile_opts()
#> $type
#> [1] "vfld"
#>
#> $missing_value
#> [1] -99
#>
#> $synop_cols
#> NULL
#>
#> $temp_cols
#> NULL
#>
vfile_opts(type = "vobs")
#> $type
#> [1] "vobs"
#>
#> $missing_value
#> [1] -99
#>
#> $synop_cols
#> NULL
#>
#> $temp_cols
#> NULL
#>
vfile_opts(missing_value = -555)
#> $type
#> [1] "vfld"
#>
#> $missing_value
#> [1] -555
#>
#> $synop_cols
#> NULL
#>
#> $temp_cols
#> NULL
#>