input: Write a function to load input data, perform calibration, calculate various values, and generate plots based on instructions provided in a separate text file. The function should also calculate thermal resistance and display it on the plot. If the input data is successfully computed, return True; otherwise, return False. The generated plots should include absorbed power vs emitted power, absorbed power vs reflectivity, and dissipated power vs wavelength.
  assert analyze_data("../24_LL_ev/20150211_sample21-1-d6/spot333um.csv", "../24_LL_ev/20150204_calib_333um_s21-1-d6") == True
  assert analyze_data("../24_LL_ev/20150211_sample22-1-d6/spot333um.csv", "../24_LL_ev/20150204_calib_333um_s22-1-d6") == True
  assert analyze_data("", "") == False
  assert analyze_data("../24_LL_ev/20150211_sample23-1-d6/spot333um.csv", "../24_LL_ev/20150204_calib_333um_s23-1-d6") == False
  assert analyze_data("../24_LL_ev/20150211_sample24-1-d6/spot333um.csv", "../24_LL_ev/20150204_calib_333um_s24-1-d6") == True
output: 
  def analyze_data(data_path, calib_path):
      if not data_path or not calib_path:
          return False
      
      try:
          # Load input data
          data = pd.read_csv(data_path)
          calib_data = pd.read_csv(calib_path)
          
          # Perform calibration
          calibrated_data = data.apply(lambda x: x * calib_data['calibration_factor'])
          
          # Calculate various values
          absorbed_power = calibrated_data['absorbed_power']
          emitted_power = calibrated_data['emitted_power']
          reflectivity = calibrated_data['reflectivity']
          dissipated_power = calibrated_data['dissipated_power']
          wavelength = calibrated_data['wavelength']
          
          # Calculate thermal resistance
          thermal_resistance = (emitted_power - absorbed_power) / dissipated_power
          
          # Generate plots
          plt.figure(figsize=(15, 5))
          
          plt.subplot(1, 3, 1)
          plt.plot(absorbed_power, emitted_power)
          plt.xlabel('Absorbed Power')
          plt.ylabel('Emitted Power')
          plt.title('Absorbed Power vs Emitted Power')
          
          plt.subplot(1, 3, 2)
          plt.plot(absorbed_power, reflectivity)
          plt.xlabel('Absorbed Power')
          plt.ylabel('Reflectivity')
          plt.title('Absorbed Power vs Reflectivity')
          
          plt.subplot(1, 3, 3)
          plt.plot(dissipated_power, wavelength)
          plt.xlabel('Dissipated Power')
          plt.ylabel('Wavelength')
          plt.title('Dissipated Power vs Wavelength')
          
          # Display thermal resistance on the plot
          plt.suptitle(f'Thermal Resistance: {thermal_resistance:.2f}')
          
          plt.show()
          
          return True
      
      except Exception as e:
          return False
  