nichollsh / AGNI

A 1D radiative-convective model for the atmospheres of hot terrestrial planets.
https://nichollsh.github.io/AGNI/
GNU General Public License v3.0
1 stars 1 forks source link

Fixes and extensions to surface albedo model #57

Closed nichollsh closed 3 months ago

nichollsh commented 3 months ago

The old surface albedo model was not working properly. This has now been fixed, with the addition of wavelength-dependent data in res/.

The configuration file needs to specify the surface_material. This can either be a "blackbody" or the path to a file containing wavelength-dependent albedo data. In the former case, albedo_s (a float) needs to be supplied.

There is a new test for this in test/runtests.jl, since I had some trouble getting this to work properly.

Closes #56 as completed.

Note that this does not include surface emissivity, which will need to be handled separately.