rampedpyrox.RpoThermogram.from_csv¶
-
classmethod
RpoThermogram.
from_csv
(file, bl_subtract=True, nt=250)[source]¶ Class method to directly import RPO data from a .csv file and create an
rp.RpoThermogram
class instance.Parameters: - file (str or pd.DataFrame) – File containing isotope data, either as a path string or a dataframe.
- bl_subtract (Boolean) – Tells the program whether or not to linearly subtract the baseline such that ppmCO2 returns to 0 at the beginning and end of the run. Defaults to True. To minimize boundary effects, this should typically be set to `True` regardless of previous data treatment.
- nt (int) – The number of time points to use. Defaults to 250.
Notes
If using the all_data file generated by the NOSAMS RPO LabView program, the date_time column must be converted to hh:mm:ss AM/PM format and a header row should be added with the following columns:
date_time,
T_room,
P_room,
CO2_raw,
corr_int,
corr_slope,
temp,
CO2_scaled,
flow_rate,
dTdt,
fraction,
ug_frac,
ug_sum
(Note that all columns besides date_time, temp, and CO2_scaled are unused.) Ensure that all rows before the start of temperature ramping and after the ovens have been turned off have been removed.
When down-sampling, t contains the midpoints of each time bin and g and T contain the corresponding temp. and fraction remaining at each midpoint.
See also
RpoIsotopes.from_csv()
- Classmethod for creating
rp.RpoIsotopes
instance directly from a .csv file.