emission
Compute rough emission curves.
bb_emission_eq(sun_theta, wls, albedo, emiss, solar_dist)
Return isothermal blackbody emission spectrum assuming radiative equilibrium.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sun_theta |
float
|
Solar incidence angle [deg]. |
required |
wls |
ndarray
|
Wavelengths [microns]. |
required |
albedo |
float
|
Hemispherical broadband albedo. |
required |
emiss |
float
|
Emissivity. |
required |
solar_dist |
float
|
Solar distance (au). |
required |
Returns:
Type | Description |
---|---|
ndarray
|
Blackbody emission spectrum vs. wls [W m^-2]. |
Source code in roughness/emission.py
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
|
bbr(wavenumber, temp, radunits='wn')
Return blackbody radiance at given wavenumber(s) and temp(s).
Units='wn' for wavenumber: W/(m^2 sr cm^-1) 'wl' for wavelength: W/(m^2 sr μm)
Translated from ff_bbr.c in davinci_2.22.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wavenumber |
num | arr
|
Wavenumber(s) to compute radiance at [cm^-1] |
required |
temp |
num | arr
|
Temperatue(s) to compute radiance at [K] |
required |
radunits |
str
|
Return units in terms of wn or wl (wn: cm^-1; wl: μm) |
'wn'
|
Source code in roughness/emission.py
819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 |
|
bbrw(wavelength, temp, radunits='wl')
Return blackbody radiance at given wavelength(s) and temp(s).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wavelength |
num | arr
|
Wavelength(s) to compute radiance at [microns] |
required |
temp |
num | arr
|
Temperatue(s) to compute radiance at [K] |
required |
Source code in roughness/emission.py
852 853 854 855 856 857 858 859 860 |
|
btemp(wavenumber, radiance, radunits='wn')
Return brightness temperature [K] from wavenumber and radiance.
Translated from ff_bbr.c in davinci_2.22.
Source code in roughness/emission.py
863 864 865 866 867 868 869 870 871 872 873 874 875 876 |
|
btempw(wavelength, radiance, radunits='wl')
Return brightness temperature [K] at wavelength given radiance.
Source code in roughness/emission.py
879 880 881 882 883 884 |
|
cmrad2mrad(cmrad)
Convert radiance from units W/(cm^2 sr μm) to W/(m^2 sr μm).
Source code in roughness/emission.py
919 920 921 |
|
cos_facet_sun_inc(surf_theta, surf_az, sun_theta, sun_az)
Return cos solar incidence of surface slopes (surf_theta, surf_az) given sun location (sun_theta, sun_az) using the dot product.
If cinc < 0, angle b/t surf and sun is > 90 degrees. Limit these values to cinc = 0.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
surf_theta |
float | ndarray
|
Surface slope(s) in degrees. |
required |
surf_az |
float | ndarray
|
Surface azimuth(s) in degrees. |
required |
sun_theta |
float
|
Solar incidence angle in degrees. |
required |
sun_az |
float
|
Solar azimuth from North in degrees. |
required |
Source code in roughness/emission.py
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 |
|
directional_emiss(theta)
Return directional emissivity at angle theta.
Source code in roughness/emission.py
615 616 617 618 619 620 621 622 623 |
|
emission_2component(wavelength, temp_illum, temp_shadow, shadow_table, emissivity=1)
Return roughness emission spectrum at given wls given the temperature of illuminated and shadowed surfaces and fraction of the surface in shadow.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wavelength |
num | arr
|
Wavelength(s) [microns] |
required |
temp_illum |
num | arr
|
Temperature(s) of illuminated fraction of surface |
required |
temp_shadow |
num | arr
|
Temperature(s) of shadowed fraction of surface |
required |
shadow_table |
num | arr
|
Proportion(s) of surface in shadow |
required |
Source code in roughness/emission.py
744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 |
|
emission_spectrum(emission_table, weight_table=None)
Return emission spectrum as weighted sum of facets in emission_table.
Weight_table must have same slope, az coords as emission_table.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
emission_table |
DataArray
|
Table of radiance at each facet. |
required |
weight_table |
DataArray
|
Table of facet weights. |
None
|
Source code in roughness/emission.py
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 |
|
get_albedo_scaling(inc, albedo=0.12, a=None, b=None, mode='vasavada')
Return albedo scaled with solar incidence angle (eq A5; Keihm, 1984).
Parameters a and b have been measured since Keihm (1984) and may differ for non-lunar bodies. Optionally supply a and b or select a mode: modes: 'king': Use lunar a, b from King et al. (2020) 'hayne': Use lunar a, b from Hayne et al. (2017) 'vasavada': Use lunar a, b from Vasavada et al. (2012) else: Use original a, b from Keihm (1984) Note: if a or b is supplied, both must be supplied and supercede mode
Parameters:
Name | Type | Description | Default |
---|---|---|---|
albedo |
num
|
Lunar average bond albedo (at inc=0). |
0.12
|
inc |
num | arr
|
Solar incidence angle [deg]. |
required |
mode |
str
|
Scale albedo based on published values of a, b. |
'vasavada'
|
Source code in roughness/emission.py
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 |
|
get_emission_eq(cinc, albedo, emissivity, solar_dist)
Return radiated emission assuming radiative equillibrium.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cinc |
num
|
Cosine of solar incidence. |
required |
albedo |
num
|
Hemispherical broadband albedo. |
required |
emissivity |
num
|
Hemispherical broadband emissivity. |
required |
solar_dist |
num
|
Solar distance (au). |
required |
Source code in roughness/emission.py
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 |
|
get_emissivity_table(facet_theta, facet_az, sc_theta, sc_az)
Return emissivity table for given shadow_table and solar incidence angle.
Source code in roughness/emission.py
769 770 771 772 773 774 775 776 777 |
|
get_facet_temp_illum_eq(shadow_table, sun_theta, sun_az, albedo, emiss, solar_dist, rerad=True)
Return temperature of illuminated facets assuming radiative equilibrium. Uses shadow_table generated by get_shadow_table.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
shadow_table |
ndarray
|
Shadow table. |
required |
sun_theta |
float
|
Solar incidence angle. |
required |
sun_az |
float
|
Solar azimuth. |
required |
albedo |
float
|
Hemispherical broadband albedo. |
required |
emiss |
float
|
Emissivity. |
required |
solar_dist |
float
|
Solar distance (au). |
required |
rerad |
bool
|
If True, include re-radiation from adjacent facets. Default is True. |
True
|
Returns:
Type | Description |
---|---|
ndarray
|
Facet temperatures. |
Source code in roughness/emission.py
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 |
|
get_rad_factor(rad, solar_irr, emission=None, emissivity=None)
Return radiance factor (I/F) given observed radiance, modeled emission, solar irradiance and emissivity. If no emissivity is supplied, assume Kirchoff's Law (eq. 6, Bandfield et al., 2018).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rad |
num | arr
|
Observed radiance [W m^-2 μm^-1] |
required |
emission |
num | arr
|
Emission to remove from rad [W m^-2 μm^-1] |
None
|
solar_irr |
num | arr
|
Solar irradiance [W m^-2 μm^-1] |
required |
emissivity |
num | arr
|
Emissivity (if None, assume Kirchoff) |
None
|
Source code in roughness/emission.py
800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 |
|
get_rad_sb(temp)
Return radiance assuming the Stefan-Boltzmann Law given temperature.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
temp |
num | arr
|
Temperature [K] |
required |
Source code in roughness/emission.py
710 711 712 713 714 715 716 717 718 719 720 |
|
get_reradiation(cinc, surf_theta, albedo, emissivity, solar_dist, rad0, alb0=0.12)
Return emission incident on surf_theta from re-radiating adjacent level surfaces. Approximation from JB modified from downwelling radiance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cinc |
num | arr
|
Cosine of solar incidence. |
required |
surf_theta |
num | arr
|
Surface slope(s) in degrees. |
required |
albedo |
num | arr
|
Albedo (hemispherical if num, scaled by cinc if array). |
required |
emissivity |
num
|
Hemispherical broadband emissivity. |
required |
solar_dist |
num
|
Solar distance (au). |
required |
rad0 |
num
|
Radiance of level surface facet. |
required |
alb0 |
num
|
Albedo of level surface facet. |
0.12
|
Source code in roughness/emission.py
665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 |
|
get_reradiation_alt(rad_table, sun_theta, sun_az, tflat, tvert, albedo=0.12, emiss=0.95)
Return emission incident on surf_theta from re-radiating adjacent level surfaces using lookup table. Modified from JB downwelling approximation.
Source code in roughness/emission.py
512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 |
|
get_reradiation_jb(sun_theta, facet_theta, t_flat, albedo=0.12, emiss=0.95, alb_scaling='vasavada', solar_dist=1)
Return emission incident on surf_theta from re-radiating adjacent level surfaces using JB downwelling approximation.
Source code in roughness/emission.py
635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 |
|
get_reradiation_new(tflat, albedo=0.12, emiss=0.95)
Compute upwelling reradiation from flat surface.
Source code in roughness/emission.py
626 627 628 629 630 631 632 |
|
get_shadow_temp(sun_theta, sun_az, temp0)
Return temperature of shadows. Nominally 100 K less than the rad_eq surf_temp. At high solar incidence, scale shadow temperature by inc angle. Evening shadows are warmer than morning shadows. Tuned for lunar eqautor by Bandfield et al. (2015, 2018).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sun_theta |
num
|
Solar incidence angle [deg] |
required |
sun_az |
num
|
Solar azimuth from N [deg] |
required |
temp0 |
num
|
Temperature of illuminated level surface facet [K] |
required |
Source code in roughness/emission.py
723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 |
|
get_shadow_temp_new(temp_table, tparams, cst=0.5, tlookup=TLOOKUP)
Return cast shadow temperature using current and dawn (coldest) temperatures and the cast shadow time, cst.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
temp_table |
ndarray
|
Temperature table. |
required |
tparams |
dict
|
Dictionary of temperature lookup parameters. |
required |
cst |
float
|
Fraction of time since dawn. Default is 0.5. |
0.5
|
tlookup |
path
|
Temperature lookup xarray or path to file. Default is TLOOKUP. |
TLOOKUP
|
Returns:
Type | Description |
---|---|
ndarray
|
Cast shadow temperature table. |
Source code in roughness/emission.py
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
|
get_shadow_temp_table(temp_table, sun_theta, sun_az, tparams, cst, tlookup=TLOOKUP)
Return shadow temperature for each facet in temp_illum.
Facets where solar incidence angle > 90 degrees (shaded relief) retain the temp_table value since the sun has simply set in thermal model.
Facets where solar incidence angle < 90 degrees (cast shadow) are set to a shadow temperature following Bandfield et al. (2018).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
temp_table |
DataArray
|
Table of facet temperatures. |
required |
sun_theta |
float
|
Solar incidence angle. |
required |
sun_az |
float
|
Solar azimuth. |
required |
tparams |
dict
|
Dictionary of temperature lookup parameters. |
required |
cst |
float
|
Cast shadow time. |
required |
Returns:
Type | Description |
---|---|
ndarray
|
Shadow temperature table. |
Source code in roughness/emission.py
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
|
get_solar_irradiance(solar_spec, solar_dist)
Return solar irradiance from solar spectrum and solar dist assuming lambertian surface.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
solar_spec |
arr
|
Solar spectrum [W m^-2 μm^-1] at 1 au |
required |
solar_dist |
num
|
Solar distance (au) |
required |
Source code in roughness/emission.py
788 789 790 791 792 793 794 795 796 797 |
|
get_temp_sb(rad)
Return temperature assuming the Stefan-Boltzmann Law given radiance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rad |
num | arr
|
Radiance [W m^-2] |
required |
Source code in roughness/emission.py
697 698 699 700 701 702 703 704 705 706 707 |
|
get_temp_table(params, tlookup=None)
Return 2D temperature table of surface facets (inc, az).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
params |
dict
|
Dictionary of temperature lookup parameters. |
required |
tlookup |
path
|
Temperature lookup xarray or path to file. |
None
|
Returns:
Type | Description |
---|---|
ndarray
|
Facet temperatures (dims: az, theta) |
Source code in roughness/emission.py
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
|
mrad2cmrad(mrad)
Convert radiance from units W/(m^2 sr μm) to W/(cm^2 sr μm).
Source code in roughness/emission.py
924 925 926 |
|
rough_emission_eq(geom, wls, rms, albedo, emissivity, solar_dist, rerad=False, flookup=None)
Return emission spectrum corrected for subpixel roughness assuming radiative equillibrium. Uses ray-casting generated shadow_lookup table at sl_path.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
geom |
list of float
|
View geometry (sun_theta, sun_az, sc_theta, sc_az) |
required |
wls |
arr
|
Wavelengths [microns] |
required |
rms |
arr
|
RMS roughness [degrees] |
required |
albedo |
num
|
Hemispherical broadband albedo |
required |
emissivity |
num
|
Emissivity |
required |
solar_dist |
num
|
Solar distance (au) |
required |
rerad |
bool
|
If True, include re-radiation from adjacent facets |
False
|
flookup |
str
|
Los lookup path |
None
|
Returns:
Name | Type | Description |
---|---|---|
rough_emission |
arr
|
Emission spectrum vs. wls [W m^-2] |
Source code in roughness/emission.py
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 |
|
rough_emission_lookup(geom, wls, rms=15, tparams=None, rerad=True, flookup=None, tlookup=None, emissivity=1, cast_shadow_time=0.05)
Return rough emission spectrum given geom and params to tlookup.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
geom |
list of float
|
Viewing geometry specified as four angles (solar_incidence, solar_azimuth, view_emission, view_azimuth) |
required |
wls |
arr
|
Wavelengths [microns] |
required |
rms |
arr
|
RMS roughness [degrees]. Default is 15. |
15
|
rerad |
bool
|
If True, include re-radiation from adjacent facets. Default is True. |
True
|
tparams |
dict
|
Dictionary of temperature lookup parameters. Default is None. |
None
|
flookup |
path
|
Facet lookup xarray or path to file. Default is None. |
None
|
tlookup |
path
|
Temperature lookup xarray or path to file. Default is None. |
None
|
emissivity |
float
|
Emissivity. Default is 1. |
1
|
cast_shadow_time |
float
|
Time spent in cast shadow as fraction of one day. Default is 0.05. |
0.05
|
Returns:
Type | Description |
---|---|
DataArray
|
Rough emission spectrum. |
Source code in roughness/emission.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|
rough_emission_lookup_new(geom, wls, rms=15, tparams=None, rerad=True, flookup=None, tlookup=None, emissivity=1, cast_shadow_time=0.05)
Return rough emission spectrum given geom and params to tlookup.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
geom |
list of float
|
Viewing geometry specified as four angles (solar_incidence, solar_azimuth, view_emission, view_azimuth) |
required |
wls |
arr
|
Wavelengths [microns] |
required |
rms |
arr
|
RMS roughness [degrees]. Default is 15. |
15
|
rerad |
bool
|
If True, include re-radiation from adjacent facets. Default is True. |
True
|
tparams |
dict
|
Dictionary of temperature lookup parameters. Default is None. |
None
|
flookup |
path
|
Facet lookup xarray or path to file. Default is None. |
None
|
tlookup |
path
|
Temperature lookup xarray or path to file. Default is None. |
None
|
emissivity |
float
|
Emissivity. Default is 1. |
1
|
cast_shadow_time |
float
|
Time spent in cast shadow as fraction of one day. Default is 0.05. |
0.05
|
Returns:
Type | Description |
---|---|
DataArray
|
Rough emission spectrum. |
Source code in roughness/emission.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
|
temp2rad(wavelength, temp, emissivity=1)
Return "graybody" radiance at temperature and emissivity.
Source code in roughness/emission.py
780 781 782 783 784 785 |
|
wl2wn(wavelength)
Convert wavelength (μm) to wavenumber (cm-1).
Source code in roughness/emission.py
914 915 916 |
|
wlrad2wnrad(wl, wlrad)
Convert radiance from units W/(cm2 sr cm-1) to W/(cm2 sr μm).
Source code in roughness/emission.py
900 901 902 903 904 905 906 |
|
wn2wl(wavenumber)
Convert wavenumber (cm-1) to wavelength (μm).
Source code in roughness/emission.py
909 910 911 |
|
wnrad2wlrad(wavenumber, rad)
Convert radiance from units W/(cm2 sr cm-1) to W/(cm2 sr μm).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wavenumber |
num | arr
|
Wavenumber(s) [cm^-1] |
required |
rad |
num | arr
|
Radiance in terms of wn units [W/(cm^2 sr cm^-1)] |
required |
Source code in roughness/emission.py
887 888 889 890 891 892 893 894 895 896 897 |
|