function Spec = readSpec(filename)
    Spec = readtable(filename); % Read the table from the spec pH text file
    Spec = Spec(~contains(Spec.Comments, 'junk'), :); % Filter out rows where the 'Comments' column contains 'junk'
    Spec.DateTimeRan = Spec.DateTime;
    m = char(Spec.Comments);
    m = m(:,4:end);
    Spec.DateTime = datetime(m,"InputFormat","uuuuMMdd_HHmm","TimeZone","UTC");
    Spec.DateTimeRan.TimeZone = 'UTC';
end