Export CTF Range Information to a File
Source:R/SeaSondeRCS_MUSIC.R
seasonder_exportCTFRangeInfo.Rd
This function writes the formatted CTF range information, generated from a SeaSondeRCS object, to a specified file.
Details
The function internally calls seasonder_exportCTFRangeInfo_string
to obtain a formatted string of range information.
It then writes this output string to the specified file. Additionally, it returns the extracted range information
invisibly, allowing further processing if necessary.
Examples
# Prepare a SeaSondeRCS object with valid data
apm_file <- system.file("css_data/MeasPattern.txt", package = "SeaSondeR")
apm_obj <- seasonder_readSeaSondeRAPMFile(apm_file)
#> seasonder_createSeaSondeRAPM: APM object created successfully.
cs_file <- system.file("css_data/CSS_TORA_24_04_04_0700.cs", package = "SeaSondeR")
cs_obj <- seasonder_createSeaSondeRCS(
cs_file,
seasonder_apm_object = apm_obj
)
#> new_SeaSondeRCS: SeaSondeRCS object created successfully.
# Export CTF range information to a temporary text file
range_info <- seasonder_exportCTFRangeInfo(cs_obj, tempfile(fileext = ".txt"))