Skip to contents

Convert a spectral photon irradiance [\(mol\,s^{-1}\,m^{-2}\,nm^{-1}\)] into a spectral energy irradiance [\(W\,m^{-2}\,nm^{-1}\)].

Usage

as_energy(w.length, s.qmol.irrad)

Arguments

w.length

numeric vector of wavelengths [\(nm\)]).

s.qmol.irrad

numeric vector of spectral photon irradiance values.

Value

A numeric vector of spectral (energy) irradiances.

Examples

with(sun.spct, as_energy(w.length, s.q.irrad))
#>   [1] 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
#>   [6] 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
#>  [11] 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 2.609665e-06
#>  [16] 6.142401e-06 2.176175e-05 6.780119e-05 1.533491e-04 3.669677e-04
#>  [21] 7.845430e-04 1.264554e-03 2.623718e-03 3.922583e-03 8.974134e-03
#>  [26] 1.165567e-02 1.799127e-02 2.076166e-02 3.059158e-02 3.997854e-02
#>  [31] 4.163908e-02 4.871239e-02 7.852756e-02 8.036738e-02 9.428946e-02
#>  [36] 1.054126e-01 1.127901e-01 1.020587e-01 1.487690e-01 1.413919e-01
#>  [41] 1.569692e-01 1.741691e-01 1.822031e-01 1.787215e-01 1.680533e-01
#>  [46] 2.075508e-01 2.168055e-01 2.774416e-01 2.851096e-01 2.648573e-01
#>  [51] 2.998745e-01 3.295190e-01 2.895510e-01 3.000718e-01 2.951501e-01
#>  [56] 2.936962e-01 3.129253e-01 2.712433e-01 2.609770e-01 2.904669e-01
#>  [61] 3.108404e-01 3.352353e-01 3.053287e-01 3.221950e-01 3.380052e-01
#>  [66] 2.675878e-01 3.060279e-01 3.051305e-01 3.207918e-01 3.056038e-01
#>  [71] 2.981687e-01 3.453572e-01 3.415567e-01 3.234148e-01 3.305047e-01
#>  [76] 3.758625e-01 3.737639e-01 3.441658e-01 2.822228e-01 2.544907e-01
#>  [81] 2.916945e-01 3.707068e-01 3.071709e-01 3.245170e-01 3.608416e-01
#>  [86] 3.681253e-01 3.661791e-01 4.491898e-01 4.294680e-01 3.980621e-01
#>  [91] 4.167994e-01 4.393233e-01 4.092854e-01 3.788335e-01 3.576838e-01
#>  [96] 3.260057e-01 3.387414e-01 3.946242e-01 4.189703e-01 4.969714e-01
#> [101] 4.131498e-01 3.976749e-01 4.362110e-01 3.229944e-01 2.614310e-01
#> [106] 3.001535e-01 3.915446e-01 3.546813e-01 3.748415e-01 3.655553e-01
#> [111] 3.963621e-01 4.535396e-01 4.822105e-01 4.372341e-01 2.422023e-01
#> [116] 2.976442e-01 4.699886e-01 4.054503e-01 2.541827e-01 5.035644e-01
#> [121] 5.861190e-01 6.081049e-01 6.261742e-01 6.497388e-01 6.207287e-01
#> [126] 6.370489e-01 6.263786e-01 5.996440e-01 5.951226e-01 6.256209e-01
#> [131] 6.615421e-01 5.605505e-01 6.507135e-01 6.742498e-01 6.456365e-01
#> [136] 6.632528e-01 6.474609e-01 6.761818e-01 6.446503e-01 6.334743e-01
#> [141] 6.446047e-01 5.988416e-01 6.701269e-01 6.668377e-01 6.118191e-01
#> [146] 6.026922e-01 6.061918e-01 6.388873e-01 5.954636e-01 5.927697e-01
#> [151] 5.479922e-01 4.570371e-01 4.136900e-01 6.464532e-01 6.527846e-01
#> [156] 6.298332e-01 6.626874e-01 7.336607e-01 7.266697e-01 6.453212e-01
#> [161] 6.028502e-01 6.436476e-01 6.734260e-01 7.188581e-01 7.055629e-01
#> [166] 7.067347e-01 6.966893e-01 6.652017e-01 7.371810e-01 7.696090e-01
#> [171] 7.444307e-01 7.751536e-01 8.204633e-01 7.699637e-01 6.972674e-01
#> [176] 7.323634e-01 7.653814e-01 7.741257e-01 7.984935e-01 7.618389e-01
#> [181] 7.694246e-01 7.695513e-01 7.711277e-01 7.612294e-01 7.608667e-01
#> [186] 7.609672e-01 7.453590e-01 7.581146e-01 7.429891e-01 7.665312e-01
#> [191] 7.663832e-01 7.480455e-01 7.424066e-01 7.693357e-01 7.514944e-01
#> [196] 7.454852e-01 7.724634e-01 7.683690e-01 7.640614e-01 7.869773e-01
#> [201] 7.536975e-01 7.714873e-01 7.639967e-01 7.832759e-01 7.730398e-01
#> [206] 7.492634e-01 7.331956e-01 6.529021e-01 6.511654e-01 7.163985e-01
#> [211] 7.026884e-01 7.728111e-01 7.356047e-01 6.896611e-01 7.382081e-01
#> [216] 7.333010e-01 7.899872e-01 7.600248e-01 7.533780e-01 7.122628e-01
#> [221] 7.250173e-01 7.240982e-01 7.090017e-01 6.916296e-01 7.301274e-01
#> [226] 7.256689e-01 7.371846e-01 7.701737e-01 7.363612e-01 7.013302e-01
#> [231] 7.466557e-01 7.427322e-01 7.384934e-01 7.510876e-01 7.126073e-01
#> [236] 7.004027e-01 6.933100e-01 7.302733e-01 6.176652e-01 6.449637e-01
#> [241] 6.374949e-01 6.983238e-01 7.150799e-01 7.302633e-01 6.957057e-01
#> [246] 7.362903e-01 7.376088e-01 6.925623e-01 6.492072e-01 7.213736e-01
#> [251] 7.315043e-01 7.305629e-01 7.603297e-01 7.246324e-01 6.460471e-01
#> [256] 6.727279e-01 7.084755e-01 7.429248e-01 7.157770e-01 7.362092e-01
#> [261] 7.221751e-01 6.756299e-01 6.684246e-01 7.097324e-01 7.173849e-01
#> [266] 7.247958e-01 7.272464e-01 6.993041e-01 7.119013e-01 6.936565e-01
#> [271] 7.020853e-01 7.046551e-01 7.031409e-01 7.178863e-01 6.920716e-01
#> [276] 7.072154e-01 7.117599e-01 6.997762e-01 6.875006e-01 6.916909e-01
#> [281] 6.765463e-01 6.829971e-01 6.972827e-01 6.676445e-01 6.991590e-01
#> [286] 6.897606e-01 6.910300e-01 6.501603e-01 6.694088e-01 6.750915e-01
#> [291] 6.508026e-01 6.517397e-01 6.443685e-01 6.575138e-01 6.713390e-01
#> [296] 6.652659e-01 6.539001e-01 6.591796e-01 6.644287e-01 6.573545e-01
#> [301] 6.474340e-01 6.641212e-01 6.701280e-01 6.853736e-01 6.839982e-01
#> [306] 6.793814e-01 6.727982e-01 6.520577e-01 6.553529e-01 6.304643e-01
#> [311] 5.658760e-01 5.704249e-01 6.061605e-01 5.986292e-01 6.106598e-01
#> [316] 6.161507e-01 6.028277e-01 6.170060e-01 6.256272e-01 6.238272e-01
#> [321] 6.247415e-01 6.372767e-01 6.295837e-01 6.305890e-01 6.360329e-01
#> [326] 6.578140e-01 6.614323e-01 6.557035e-01 6.499126e-01 6.544869e-01
#> [331] 6.494403e-01 6.390005e-01 6.391328e-01 6.468436e-01 6.351692e-01
#> [336] 6.286223e-01 6.304454e-01 6.103748e-01 6.007438e-01 6.363974e-01
#> [341] 6.428544e-01 6.373555e-01 6.464099e-01 6.349725e-01 6.271266e-01
#> [346] 6.115983e-01 6.094250e-01 6.008364e-01 6.069182e-01 5.896789e-01
#> [351] 6.033129e-01 5.999715e-01 5.983543e-01 5.841746e-01 6.041071e-01
#> [356] 5.994137e-01 6.089211e-01 6.005073e-01 6.113881e-01 6.233510e-01
#> [361] 6.136818e-01 5.997701e-01 6.040888e-01 6.138918e-01 6.122839e-01
#> [366] 6.006034e-01 5.925752e-01 5.777359e-01 5.610866e-01 5.547404e-01
#> [371] 5.569875e-01 5.663592e-01 5.799135e-01 5.686157e-01 5.819163e-01
#> [376] 5.787141e-01 5.617706e-01 4.982959e-01 5.160054e-01 5.681612e-01
#> [381] 5.760240e-01 5.780006e-01 5.960817e-01 5.995383e-01 5.968024e-01
#> [386] 5.913568e-01 5.908864e-01 5.893670e-01 5.856558e-01 5.977089e-01
#> [391] 5.967282e-01 5.925505e-01 5.890762e-01 5.817669e-01 5.844075e-01
#> [396] 5.879885e-01 5.857664e-01 5.850400e-01 5.832098e-01 5.809275e-01
#> [401] 5.798542e-01 5.769145e-01 5.726162e-01 5.720641e-01 5.694090e-01
#> [406] 5.685922e-01 5.650287e-01 5.327760e-01 4.746127e-01 4.755848e-01
#> [411] 4.739026e-01 4.899139e-01 5.021972e-01 5.029201e-01 4.870913e-01
#> [416] 4.725514e-01 4.778166e-01 4.905394e-01 5.164799e-01 5.050733e-01
#> [421] 4.833817e-01 4.758016e-01 4.684248e-01 4.738352e-01 4.959724e-01
#> [426] 5.013394e-01 4.970284e-01 4.931499e-01 4.879018e-01 5.005950e-01
#> [431] 5.036519e-01 5.015629e-01 5.054329e-01 5.070675e-01 4.980342e-01
#> [436] 4.976633e-01 4.798256e-01 4.570035e-01 4.109367e-01 3.641044e-01
#> [441] 3.366514e-01 3.404651e-01 4.076534e-01 4.345295e-01 4.199928e-01
#> [446] 3.896937e-01 3.832661e-01 3.837550e-01 3.855997e-01 3.791977e-01
#> [451] 3.835852e-01 3.892879e-01 3.882856e-01 4.185835e-01 4.466389e-01
#> [456] 4.676589e-01 4.629069e-01 4.502648e-01 4.577747e-01 4.647241e-01
#> [461] 4.661957e-01 4.766062e-01 4.785612e-01 4.779915e-01 4.939466e-01
#> [466] 5.006212e-01 4.963788e-01 4.988611e-01 5.025733e-01 5.023168e-01
#> [471] 4.945203e-01 4.922409e-01 5.000141e-01 4.985939e-01 4.957415e-01
#> [476] 5.007593e-01 4.997951e-01 4.944025e-01 4.916928e-01 4.776632e-01
#> [481] 3.896317e-01 1.786510e-01 1.373212e-01 2.197768e-01 2.175218e-01
#> [486] 2.396693e-01 2.956160e-01 3.567039e-01 3.981980e-01 4.388254e-01
#> [491] 4.598649e-01 4.686605e-01 4.698684e-01 4.666001e-01 4.699469e-01
#> [496] 4.746771e-01 4.618263e-01 4.685451e-01 4.716414e-01 4.687204e-01
#> [501] 4.713172e-01 4.660367e-01 4.647949e-01 4.680026e-01 4.634599e-01
#> [506] 4.583301e-01 4.603859e-01 4.521272e-01 4.450606e-01 4.385155e-01
#> [511] 4.254126e-01 4.207327e-01 4.198022e-01 4.202174e-01 4.201554e-01
#> [516] 4.213304e-01 4.146957e-01 4.080616e-01 4.141204e-01 4.236281e-01
#> [521] 4.185850e-01 4.069055e-01