./
eve_integrate_line.pro
top source eve_integrate_line
user
result = eve_integrate_line(wave_min, wave_max, irradiance_in [, megsa=megsa] [, megsb=megsb] [, l2=l2] [, neg=neg])
Integrate an irradiance from wave_min to wave_max, using the MEGS-A, MEGS-B, or Level 2 wavelength scale
You should set exactly one of /megsa, /megsb, and /l2. If none are set, the function will break. If more than one is set, the first one in the priority list /megsa, /megsb, /l2 is chosen.
This does an integration of a wavelength range with no instrument sensitivity weighting. This is a "line". If you need instrument sensitivity, use integrate_band().
This uses the Midpoint rule to integrate - Each bin is considered to be centered at its wavelength, and the measurement is considered to be the mean measurement over the bin.
Return value
integrated measurement between the given wavelength Since input is in (W/m^2)/nm, output is in W/m^2
Parameters
- wave_min in required
minimum wavelength of the line in question, in nanometers
- wave_max in required
maximum wavelength
- irradiance_in in required
measurement, (W/m^2)/nm
Keywords
- megsa in optional
if set, input wavelength scale is MEGS-A
- megsb in optional
if set, input wavelength scale is MEGS-B
- l2 in optional
if set, input wavelength scale is Level 2
- neg in optional
if set, ignore negative values. Treat them as zero in the integration. If not set, return -1 if any bins are negative.
File attributes
Modification date: | Fri Sep 14 00:00:00 2012 |
Lines: | 80 |
Docformat: | rst rst |