Skip to content

python interface to disort model, set up for ice columns with LAPs including snow and ice algae

License

Notifications You must be signed in to change notification settings

jmcook1186/biodisort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

biodisort

This is a very early, draft, work-in-progress etc etc implementation of a python interface to disort that is set up for ice surfaces and incorproates optical properties for a range of light absorbing particles found on glaciers and ice sheets. It extends the interface used by biosnicar but uses disort as the RT solver, enabling angular itensities to be returned as well as hemispheric albedo.

The disort model is provided as a binary file compiled from the FORTRAN code for DISORT v4 with bindings that allow the disort model to be imported intp python scripts and called as a Python function.

This project builds on two existing projects:

biosnicar pydisort

You need to have biosnicar downloaded locally and the path to the top level biosnicar directory set in inputs.yaml (SNICAR_BASE_PATH). This enabled biodisort to grab optical property data for ice, water and impurities from the biosnicar database.

setup

python setup.py

configure

nano inputs.yaml

run

python biodisort/drivers/main.py

You'll get a plot of the intensity at each viewing angle and a plot of the spectral albedo (calculated using hemispheric mean).

TODO

  1. Check all array sizes and make sure they dynamically update correctly across snicar and disort params
  2. Check brdf/surface generation and implement in the main flow
  3. Create detailed input validation function that ensures internal consistency in all config
  4. Synchronize snicar and disort illumination params (done - but can be improved for cases where there are both diffuse and direct components)
  5. Implement output handling - we currently get viewing angle arrays at individual wavelengths - we want to have options to get angular intensities or hemispheric spectral values, and also broadband (done some basic output wrangling - need to add more control)
  6. Remove unneccessary snicar code (done a good amount of stripping - maybe some more still to find)
  7. Make sure default disort config is sensible for an ice column under combination direct/diffuse illumination
  8. Docs!
  9. Tests!

About

python interface to disort model, set up for ice columns with LAPs including snow and ice algae

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages