./
eve_process_spectrum.pro
top source eve_process_spectrum
user
result = eve_process_spectrum(f, data_ [, wave_] [, megsa=megsa] [, megsb=megsb] [, l2=l2] [, _extra=_extra])
Convenience function to call a user function on a bunch of spectra and gather its results.
Return value
An array of results. If your function returns a 1D numeric array result, the return value will be a 2D array. If your function returns a structure, the result will be a 1D array of structures. If your function returns a single number, the result will be a 1D array.
Example - The following code loads 10 days worth of spectra, averages it to 1-minute, then calculates
the stan bands for each 1-minute average spectrum:
result=eve_merge_evs(2012001,2012010,n=6)
stan_b=eve_process_spectrum('stan_bands',result,/photons)
Parameters
- f in required
String name of function to call with each spectrum. This function must use the following prototype: function your_function,irradiance,wave,any_other_parameters=any_other_parameters. irradiance is a 1D array of spectral irradiance in W/m^2/nm wave is a 1D array of wavelength scale in nm, will match size of irradiance You may have any number of named parameters, and any named parameters not recognized by eve_process_spectrum() will be passed to your function by the _extra= convention.
- data_ in required
Irradiance data. May be: *L2 or L3 spectrum structure as read by eve_read_whole_fits() or read_latest_eve() *Just the spectrum part of L2 or L3 (not including the metadata) such as returned by eve_merge_evs() *A plain 1D or 2D array of spectra. If 2d, a single spectrum j must be represented by data[j,*]
- wave_ in optional
Wavelength scale if needed. If present, must be a 1D array and match size of spectrum. Only needed if data is a plain array and none of the switches below are passed
Keywords
- megsa in optional
- megsb in optional
- l2 in optional
set these switches to use the Level 1 MEGS-A, Level 1 MEGS-B, or Level 2 wavelength scales. If you set one of these, you don't need to pass in wave.
- _extra in optional
any other named parameters will be passed to function f()
File attributes
Modification date: | Tue Sep 11 16:33:18 2012 |
Lines: | 112 |
Docformat: | rst rst |