input: Write a function to perform a series of calculations and generate plots based on input data. The function should first run eval_spectrum.py and calibration.py with appropriate measurements. It should then load the input data, perform calibration, calculate various values, and generate plots showing absorbed power vs emitted power, absorbed power vs reflectivity, and dissipated power vs wavelength. The function should also calculate thermal resistance and display it on the plot. If the input data is successfully loaded and processed, the function should return True; otherwise, it should return False.
  
  assert main()==True
output: def main():
      try:
          # Run eval_spectrum.py and calibration.py with appropriate measurements
          import eval_spectrum
          import calibration
          
          # Load input data
          data = load_data()
          
          # Perform calibration
          calibrated_data = calibration.calibrate(data)
          
          # Calculate various values
          absorbed_power = calculate_absorbed_power(calibrated_data)
          emitted_power = calculate_emitted_power(calibrated_data)
          reflectivity = calculate_reflectivity(calibrated_data)
          dissipated_power = calculate_dissipated_power(calibrated_data)
          wavelength = calculate_wavelength(calibrated_data)
          
          # Generate plots
          import matplotlib.pyplot as plt
          
          plt.figure(1)
          plt.plot(emitted_power, absorbed_power, label='Absorbed Power vs Emitted Power')
          plt.xlabel('Emitted Power')
          plt.ylabel('Absorbed Power')
          plt.legend()
          
          plt.figure(2)
          plt.plot(reflectivity, absorbed_power, label='Absorbed Power vs Reflectivity')
          plt.xlabel('Reflectivity')
          plt.ylabel('Absorbed Power')
          plt.legend()
          
          plt.figure(3)
          plt.plot(wavelength, dissipated_power, label='Dissipated Power vs Wavelength')
          plt.xlabel('Wavelength')
          plt.ylabel('Dissipated Power')
          plt.legend()
          
          # Calculate thermal resistance
          thermal_resistance = calculate_thermal_resistance(dissipated_power, absorbed_power)
          plt.figure(3)
          plt.text(0.5, 0.5, f'Thermal Resistance: {thermal_resistance}', transform=plt.gca().transAxes)
          
          plt.show()
          
          return True
      except Exception as e:
          return False