Upgrading a usms.xml file to a newer version
upgrade_usms_xml(
file,
out_dir,
param_gen_file,
obs_dir = NULL,
stics_version = "V9.2",
target_version = "V10.0",
check_version = TRUE,
overwrite = FALSE
)
None
Path of a usms.xml file
Output directory path of the generated file
Path of the param_gen.xml file corresponding to the file version
Directory path of the observation data files
Name of the STICS version (VX.Y format)
Name of the STICS version to upgrade files to (VX.Y format)
Perform version consistency with in stics_version input with the file version and finally checking if the upgrade is possible allowed to the target_version. If TRUE, param_gen_file is mandatory.
logical (optional), TRUE for overwriting file if it exists, FALSE otherwise
See get_stics_versions_compat() for listing versions
dir_path <- get_examples_path(file_type = "xml", stics_version = "V9.2")
upgrade_usms_xml(
file = file.path(dir_path,"usms.xml"),
out_dir = tempdir(),
param_gen_file = file.path(dir_path, "param_gen.xml")
)
Run the code above in your browser using DataLab