I have the AM 1.5 spectrum http://rredc.nrel.gov/solar/spectra/am1.5/
Which gives spectral irradience in units of $\frac{W}{m^2 nm}$ vs wavelength in $nm$. For my purposes I need this spectrum in terms of $\frac{W}{m^2 eV}$ vs $eV$.
Converting the x-axis is relatively straightforward: $$\varepsilon \ [eV]=\frac{hc}{\lambda \ [nm] \ q}\times 10^9$$ Where q is the electron charge and h,c are in their SI units. However I can't seem to figure out the correct y-axis conversion. I would expect it to be similar in magnitude to the black body spectrum obtained via plancks law:
$$ I(\varepsilon) = \frac{2 \pi}{h^3 c^2} \frac{\varepsilon^3}{\text{exp} \left( \frac{\varepsilon}{kT_{sun}}\right)-1} \times q$$
How can I convert this spectrum between $\frac{W}{m^2 nm}$ and $\frac{W}{m^2 eV}$ ?
