Skip to content

tjconstant/thor2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thor2

AppVeyor Build Status Build Status codecov

Optical response of various thorlab components for use in R

The main function is named thorlabs_filter() and will return the fractional transmission given the wavelength(s) of a named filter. For example:

thorlabs_filter(name = "FEL0450", wavelength_nm = 200:700)

Returns the transmission of a long-pass 450 nm cut-off filter in the range 200 nm to 700 nm.

To quickly see the data and fit for any filter use thorlabs_filter.plot().

To export a filter's function to the global enviroment (following the naming convention of functions from the orginal thor package), you can do the following:

thorlabs_filter.import("FES0650")
# Then just use,
FES0650(wavelength_nm = 500)
# as before

For backwards compatibility with thor (v1), the FEL0550, FEL0600 and FES550 filters are exported to to the global enviroment automatically when the package loads. The APD120A2 photodetetor is also avaliable.


To Do

  • Abstract functions further to automatically deal with parameters other than wavelength / transmission

About

Optical response of various thorlab components for use in R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages