<jupyter_start><jupyter_text>Brightfield<jupyter_code>power_meter_measurement = 40e-6 # W
power_meter_area = 3.14 * (9.5e-3 / 2) ** 2 / (mag ** 2)
bf_irradiance = power_meter_measurement / power_meter_area
print('BF Irradiance: %g W/ m^2' % bf_irradiance)
bf_illuminance = bf_irradiance * lux_to_irradiance
print('BF Illuminance: %g lux' % bf_illuminance)
power_meter_area<jupyter_output><empty_output><jupyter_text>Fluourescence (Indirect)<jupyter_code>power_meter_measurement = 30e-9 # W
power_meter_area = (9.5e-3 / 2) ** 2 * 3.14 / (mag ** 2)
fl_irradiance = power_meter_measurement / power_meter_area / fill_area_fraction
print('FL Irradiance: %g W/ m^2' % fl_irradiance)
fl_illuminance = fl_irradiance * lux_to_irradiance
print('FL Illuminance: %g lux' % fl_illuminance)<jupyter_output><empty_output><jupyter_text>Compare Source Power<jupyter_code>power_meter_area = (9.5 / 2) ** 2 * 3.14 / (mag ** 2)

mW = 0.7 * power_meter_area
mW
#https://en.wikipedia.org/wiki/Lux
lux_to_w_m2 = 1.464 / 1e4
w_cm2_to_lux = 1 / lux_to_w_m2

quantum_yield = 0.79

illumination_dict_mw_cm2 = {'LED': 0.7, 
                            'Halogen Lamp': 1,
                            'Metal Halide': 57.5,
                            'xenon': 52.8,
                            'mercury': 32.8}

illumination_dict_lux = {}
for illum in illumination_dict_mw_cm2:
    illumination_dict_lux[illum] = illumination_dict_mw_cm2[illum] * w_cm2_to_lux
    
for key in illumination_dict_lux:
    print(key)
    print(illumination_dict_lux[key] * quantum_yield)
    print(np.log10(illumination_dict_lux[key] * quantum_yield))
illumination_dict_lux
illumination_dict_lumens = {'LED Array': 0.0159, 
                            'Halogen Lamp': 2800}

fov = 16.6e-3 * 14e-3 / (10 ** 2)
for key in illumination_dict_lumens:
    illumination_dict_lux[key] = illumination_dict_lumens[key] / fov
    
illumination_dict_lux<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup