input: 
  def process_and_plot_data(logfile: str, calib_folder: str) -> None:
      """
      This function performs a series of calculations and plots based on input data. It loads the input data, performs calibration, calculates various values, and generates plots based on instructions provided in a separate text file. The generated plots show absorbed power vs emitted power, absorbed power vs reflectivity, and dissipated power vs wavelength. The script also calculates thermal resistance and displays it on the plot.
  
      >>> process_and_plot_data('../24_LL_ev/20150211_sample21-1-d6/spot333um.csv', '../24_LL_ev/20150204_calib_333um_s21-1-d6')
      Max emission at (15.0) degC at (1.23) W absorbed power: (0.87) W
      Max emission at (20.0) degC at (1.56) W absorbed power: (1.01) W
      Thermal impedance: (0.12) K/W
      """
  
output:     
      import pandas as pd
      import numpy as np
      import matplotlib.pyplot as plt
      import os
  
      # Load the logfile data
      data = pd.read_csv(logfile)
  
      # Load calibration data
      calib_files = os.listdir(calib_folder)
      calib_data = pd.concat([pd.read_csv(os.path.join(calib_folder, f)) for f in calib_files])
  
      # Perform calibration
      data['calibrated_emission'] = data['emission'] * calib_data['calibration_factor']
  
      # Calculate absorbed power, reflectivity, and dissipated power
      data['absorbed_power'] = data['input_power'] - data['reflected_power']
      data['reflectivity'] = data['reflected_power'] / data['input_power']
      data['dissipated_power'] = data['absorbed_power'] - data['calibrated_emission']
  
      # Calculate thermal resistance
      thermal_resistance = (data['temperature'].max() - data['temperature'].min()) / data['absorbed_power'].max()
  
      # Plot absorbed power vs emitted power
      plt.figure(figsize=(10, 6))
      plt.plot(data['absorbed_power'], data['calibrated_emission'], marker='o')
      plt.xlabel('Absorbed Power (W)')
      plt.ylabel('Emitted Power (W)')
      plt.title('Absorbed Power vs Emitted Power')
      plt.grid(True)
      plt.show()
  
      # Plot absorbed power vs reflectivity
      plt.figure(figsize=(10, 6))
      plt.plot(data['absorbed_power'], data['reflectivity'], marker='o')
      plt.xlabel('Absorbed Power (W)')
      plt.ylabel('Reflectivity')
      plt.title('Absorbed Power vs Reflectivity')
      plt.grid(True)
      plt.show()
  
      # Plot dissipated power vs wavelength
      plt.figure(figsize=(10, 6))
      plt.plot(data['wavelength'], data['dissipated_power'], marker='o')
      plt.xlabel('Wavelength (nm)')
      plt.ylabel('Dissipated Power (W)')
      plt.title('Dissipated Power vs Wavelength')
      plt.grid(True)
      plt.show()
  
      # Display thermal resistance on the plot
      print(f"Thermal impedance: ({thermal_resistance:.2f}) K/W")
  