read_chrom | R Documentation |
'read_GCxGC' returns a raw_GCxGC with the sample name, the modulation time, the chromatographic time range and the two-dimensional chromatogram.
read_chrom( name, mod_time, sam_rate, per_eval = 0.1, x_cut = NULL, y_cut = NULL, verbose = TRUE )
name |
a name of the NetCDF file where the data is allocated. |
mod_time |
a integer, the modulation time of the chromatographic run. |
sam_rate |
a integer, the sampling rate of the equipment. If sam_rate is missing, the sampling rate is calculated by the dividing 1 by the difference of two adjacent scan time. |
per_eval |
a double between 0 and 1, with the percentage of the run time records to be evaluated if the sampling rate is homogeneous. |
x_cut |
a vector with two elements representing the retention time range to be mantained in the first dimension. |
y_cut |
a vector with two elements representing the retention time range to be mantained in the second dimension. |
verbose |
a logical indicating if the information of chromatogram is printted in the console. |
This function reads the NetCDF file and retrieves values in the total_intensity array. Then, with the provided sampling rate and modulation time, the chromatogram is folded into a numerical matrix, representing the two-dimensional chromatogram. This function is an adaptation of the presented routine by \insertCiteSkov2008;textualRGCxGC.
GB08_fl <- system.file("extdata", "08GB.cdf", package = "RGCxGC") GB08 <- read_chrom(GB08_fl, 5L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.